1616This document demonstrates how to install ` code-server ` on
1717various distros and operating systems.
1818
19- The steps in this document are exactly what the install script does.
20-
21- We recommend using the install script if possible. You can run
22- the install script with the ` --dry-run ` flag for a dry run which will
23- print out the commands it will run to install ` code-server ` but
24- not run anything. That way you can verify the script is functioning
25- as intended before installing.
26-
2719## install.sh
2820
29- We have a script to install code-server on Linux or macOS preferring to use the system package manager.
21+ [ We have a script] ( ./install.sh ) to install code-server for Linux or macOS.
22+ It tries to use the system package manager if possible.
3023
3124First run to print out the install process:
3225
@@ -40,28 +33,40 @@ Now to actually install:
4033curl -fsSL https://code-server.dev/install.sh | sh
4134```
4235
43- - For Debian, Ubuntu, Raspbian it will install the latest deb package.
44- - For Fedora, CentOS, RHEL, openSUSE it will install the latest rpm package.
36+ The script will print out how to run and start using code-server.
37+
38+ - For Debian, Ubuntu and Raspbian it will install the latest deb package.
39+ - For Fedora, CentOS, RHEL and openSUSE it will install the latest rpm package.
4540- For Arch Linux it will install the AUR package.
46- - For any unrecognized Linux operating system it will install the latest static release into ~ /.local
41+ - For any unrecognized Linux operating system it will install the latest static release into ` ~/.local `
4742
48- - Add ~ /.local/bin to your \ $ PATH to run code-server.
43+ - Add ` ~/.local/bin ` to your ` $PATH ` to run code-server.
4944
5045- For macOS it will install the Homebrew package.
5146
52- - If Homebrew is not installed it will install the latest static release into ~ /.local
47+ - If Homebrew is not installed it will install the latest static release into ` ~/.local `
5348 - Add ~ /.local/bin to your \$ PATH to run code-server.
5449
55- - If ran on an architecture with no binary releases, it will install the npm package with yarn or npm.
50+ - If ran on an architecture with no binary releases, it will install the npm package with ` yarn ` or ` npm ` .
5651 - We only have binary releases for amd64 and arm64 presently.
5752
53+ Pass ` --dry-run ` to echo the commands for the install process without running them.
54+
5855Pass ` --static ` to install a static release into ` ~/.local ` .
56+
5957Pass ` --static=/usr/local ` to install a static release system wide.
58+
6059Pass ` --version=X.X.X ` to install version ` X.X.X ` instead of latest.
6160
62- If you still don't trust our install script, even with the above explaination and the dry run,
63- continue for docs on manual installation. The script runs the exact same commands depicted
64- in the rest of this document.
61+ Pass ` --help ` to see full usage docs.
62+
63+ If you believe an install script used via curl is insecure, please give
64+ [ this wonderful blogpost] ( https://sandstorm.io/news/2015-09-24-is-curl-bash-insecure-pgp-verified-install ) by
65+ [ sandstorm.io] ( https://sandstorm.io ) a read.
66+
67+ If you'd still prefer manual installation despite the above explanations and ` --dry-run `
68+ then continue for docs on manual installation. The [ ` install.sh ` ] ( ./install.sh ) script runs the * exact* same
69+ commands depicted in the rest of this document.
6570
6671## Debian, Ubuntu
6772
0 commit comments