@@ -17,71 +17,21 @@ For a full setup and walkthrough, please see [./doc/guide.md](./doc/guide.md).
17
17
18
18
## Install
19
19
20
- You can easily and securely install code-server with our install script on any Linux or macOS machine.
20
+ We have a script to install code-server on Linux or macOS preferring to use the system package manager.
21
+
22
+ First run to print out the install process:
21
23
22
24
``` bash
23
- # First run to print out the install process.
24
25
curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-run
25
- # Now it will actually install.
26
- curl -fsSL https://code-server.dev/install.sh | sh
27
- ```
28
-
29
- ```
30
- $ curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-run --help
31
-
32
- $0 [--dry-run] [--version X.X.X] [--static <install-prefix>=~/.local]
33
-
34
- Installs latest code-server on any macOS or Linux system preferring to use the OS package manager.
35
-
36
- curl -fsSL https://code-server.dev/install.sh | sh -s --
37
-
38
- - For Debian, Ubuntu, Raspbian it will install the latest deb package.
39
- - For Fedora, CentOS, RHEL, openSUSE it will install the latest rpm package.
40
- - For Arch Linux it will install the AUR package.
41
- - For any unrecognized Linux operating system it will install the latest static release into ~/.local
42
- - Add ~/.local/bin to your \$PATH to run code-server.
43
-
44
- - For macOS it will install the Homebrew package.
45
- - If Homebrew is not installed it will install the latest static release into ~/.local
46
- - Add ~/.local/bin to your \$PATH to run code-server.
47
-
48
- - If ran on an architecture with no binary releases or glibc < v2.17, it will install the
49
- npm package with yarn or npm.
50
- - We only have binary releases for amd64 and arm64 presently.
51
-
52
- --dry-run Enables a dry run where where the steps that would have taken place
53
- are printed but do not actually execute.
54
-
55
- --version Pass to install a specific version instead of the latest release.
56
-
57
- --static Forces the installation of a static release into ~/.local
58
-
59
- This flag takes an optional argument for the installation prefix which defaults to "~/.local".
60
- code-server will be unarchived into ~/.local/lib/code-server.X.X.X and the binary will be symlinked
61
- into "~/.local/bin/code-server". You will need to add ~/.local/bin to your \$PATH to use it without
62
- the full path.
63
-
64
- To install system wide set the prefix to /usr/local.
65
26
```
66
27
67
- If you still don't trust our install script, even with the above explaination and the dry run, we have
68
- docs in [ ./doc/install.md] ( ./doc/install.md ) that explain how to install ` code-server ` on a variety of
69
- platforms. The script runs the exact same commands.
70
-
71
- ### Docker
28
+ Now to actually install:
72
29
73
30
``` bash
74
- # This will start a code-server container and expose it at http://127.0.0.1:8080.
75
- # It will also mount your current directory into the container as `/home/coder/project`
76
- # and forward your UID/GID so that all file system operations occur as your user outside
77
- # the container.
78
- docker run -it -p 127.0.0.1:8080:8080 \
79
- -v " $PWD :/home/coder/project" \
80
- -u " $( id -u) :$( id -g) " \
81
- codercom/code-server:latest
31
+ curl -fsSL https://code-server.dev/install.sh | sh
82
32
```
83
33
84
- You should also check out
34
+ Docs on the install script, manual installation and docker instructions are at [ ./doc/install.md ] ( ./doc/install.md ) .
85
35
86
36
## FAQ
87
37
0 commit comments