1
1
# code-server
2
2
3
- ` code-server ` is [ VS Code] ( https://github.com/Microsoft/vscode ) running on a
4
- remote server, accessible through the browser.
3
+ Run [ VS Code] ( https://github.com/Microsoft/vscode ) on any machine anywhere and access it in the browser.
5
4
6
- Try it out:
5
+ - ** Code everywhere:** Code on your Chromebook, tablet, and laptop with a
6
+ consistent dev environment. Develop on a Linux machine and pick up from any
7
+ device with a web browser.
8
+ - ** Server-powered:** Take advantage of large cloud servers to speed up tests, compilations, downloads, and more.
9
+ Preserve battery life when you're on the go since all intensive tasks runs on your server.
10
+ Make use of a spare computer you have lying around and turn it into a full development environment.
11
+
12
+ ![ Example gif] ( ./doc/assets/code-server.gif )
13
+
14
+ ## Getting started
15
+
16
+ For a full setup and walkthrough, please see [ ./doc/guide.md] ( ./doc/guide.md ) .
17
+
18
+ ### Debian, Ubuntu
7
19
8
20
``` bash
9
- docker run -it -p 127.0.0.1:8080:8080 -v " $PWD :/home/coder/project" -u " $( id -u) :$( id -g) " codercom/code-server:latest
21
+ curl -sSOL https://github.com/cdr/code-server/releases/download/3.3.0/code-server_3.3.0_amd64.deb
22
+ sudo dpkg -i code-server_3.3.0_amd64.deb
23
+ systemctl --user enable --now code-server
24
+ # Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
10
25
```
11
26
12
- - ** Code anywhere:** Code on your Chromebook, tablet, and laptop with a
13
- consistent dev environment. Develop on a Linux machine and pick up from any
14
- device with a web browser.
15
- - ** Server-powered:** Take advantage of large cloud servers to speed up tests,
16
- compilations, downloads, and more. Preserve battery life when you're on the go
17
- since all intensive computation runs on your server.
27
+ ### Fedora, Red Hat, SUSE
28
+
29
+ ``` bash
30
+ curl -sSOL https://github.com/cdr/code-server/releases/download/3.3.0/code-server-3.3.0-amd64.rpm
31
+ sudo yum install -y code-server-3.3.0-amd64.rpm
32
+ systemctl --user enable --now code-server
33
+ # Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
34
+ ```
35
+
36
+ ### npm
18
37
19
- ![ Example gif] ( /doc/assets/code-server.gif )
38
+ We recommend installing from ` npm ` if we don't have a precompiled release for your machine's
39
+ platform or architecture.
20
40
21
- ## Getting Started
41
+ ** note:** Installing via ` npm ` builds native modules on install and so requires C dependencies.
42
+ See [ ./doc/npm.md] ( ./doc/npm.md ) for installing these dependencies.
22
43
23
- ### Requirements
44
+ You will need at least node v12 installed. See [ # 1633 ] ( https://github.com/cdr/code-server/issues/1633 ) .
24
45
25
- - 64-bit host.
26
- - At least 1GB of RAM.
27
- - 2 cores or more are recommended (1 core works but not optimally).
28
- - Secure connection over HTTPS or localhost (required for service workers and
29
- clipboard support).
30
- - For Linux: GLIBC 2.17 or later and GLIBCXX 3.4.15 or later.
46
+ ``` bash
47
+ npm install -g code-server
48
+ code-server
49
+ # Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
50
+ ```
51
+
52
+ ### macOS
53
+
54
+ ``` bash
55
+ brew install code-server
56
+ brew services start code-server
57
+ # Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
58
+ ```
31
59
32
- ### Run over SSH
60
+ ### Docker
33
61
34
- Use [ sshcode] ( https://github.com/codercom/sshcode ) for a simple setup.
62
+ ``` bash
63
+ # This will start a code-server container and expose it at http://127.0.0.1:8080.
64
+ # It will also mount your current directory into the container as `/home/coder/project`
65
+ # and forward your UID/GID so that all file system operations occur as your user outside
66
+ # the container.
67
+ docker run -it -p 127.0.0.1:8080:8080 \
68
+ -v " $PWD :/home/coder/project" \
69
+ -u " $( id -u) :$( id -g) " \
70
+ codercom/code-server:latest
71
+ ```
72
+
73
+ ### Static releases
35
74
36
- ### Digital Ocean
75
+ We publish self contained ` .tar.gz ` archives for every release on [ github] ( https://github.com/cdr/code-server/releases ) .
76
+ They bundle the node binary and compiled native modules.
37
77
38
- [ ![ Create a Droplet] ( ./doc/assets/droplet.svg )] ( https://marketplace.digitalocean.com/apps/code-server )
78
+ 1 . Download the latest release archive for your system from [ github] ( https://github.com/cdr/code-server/releases ) .
79
+ 2 . Unpack the release.
80
+ 3 . You can run code-server by executing ` ./bin/code-server ` .
39
81
40
- ### Releases
82
+ Add the code-server ` bin ` directory to your ` $PATH ` to easily execute ` code-server ` without the full path every time.
41
83
42
- 1 . [ Download a release] ( https://github.com/cdr/code-server/releases ) . (Linux and macOS supported. Windows support planned.)
43
- 2 . Unpack the downloaded release then run the included ` code-server ` script.
44
- 3 . In your browser navigate to ` localhost:8080 ` .
84
+ Here is an example script for installing and using a static ` code-server ` release on Linux:
85
+
86
+ ``` bash
87
+ curl -sSL https://github.com/cdr/code-server/releases/download/3.3.0/code-server-3.3.0-linux-amd64.tar.gz | sudo tar -C /usr/local -xz
88
+ sudo mv /usr/local/code-server-3.3.0-linux-amd64 /usr/local/code-server
89
+ PATH=" $PATH :/usr/local/code-server/bin"
90
+ code-server
91
+ # Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
92
+ ```
45
93
46
94
## FAQ
47
95
@@ -53,5 +101,5 @@ See [./doc/CONTRIBUTING.md](./doc/CONTRIBUTING.md).
53
101
54
102
## Enterprise
55
103
56
- Visit [ our enterprise page ] ( https://coder.com ) for more information about our
104
+ Visit [ our website ] ( https://coder.com ) for more information about our
57
105
enterprise offerings.
0 commit comments