16
16
This document demonstrates how to install ` code-server ` on
17
17
various distros and operating systems.
18
18
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
-
27
19
## install.sh
28
20
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.
30
23
31
24
First run to print out the install process:
32
25
@@ -40,28 +33,40 @@ Now to actually install:
40
33
curl -fsSL https://code-server.dev/install.sh | sh
41
34
```
42
35
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.
45
40
- 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 `
47
42
48
- - Add ~ /.local/bin to your \ $ PATH to run code-server.
43
+ - Add ` ~/.local/bin ` to your ` $PATH ` to run code-server.
49
44
50
45
- For macOS it will install the Homebrew package.
51
46
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 `
53
48
- Add ~ /.local/bin to your \$ PATH to run code-server.
54
49
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 ` .
56
51
- We only have binary releases for amd64 and arm64 presently.
57
52
53
+ Pass ` --dry-run ` to echo the commands for the install process without running them.
54
+
58
55
Pass ` --static ` to install a static release into ` ~/.local ` .
56
+
59
57
Pass ` --static=/usr/local ` to install a static release system wide.
58
+
60
59
Pass ` --version=X.X.X ` to install version ` X.X.X ` instead of latest.
61
60
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.
65
70
66
71
## Debian, Ubuntu
67
72
0 commit comments