-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Revamp docs #1628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revamp docs #1628
Changes from all commits
41d625a
4aae5ea
502c262
a346c6d
1739b21
d30f3db
b3ae4d6
f4a7858
a0a77e3
f475767
5651201
c69346a
0bd2602
10b06ca
d723402
40778b1
d4b3d21
89c5a4d
73b2ff0
181bad9
611cde7
d563816
aee2599
6a25b3b
e0dbd8f
3a1e3bc
52eecca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ release/ | |
release-static/ | ||
release-packages/ | ||
release-gcp/ | ||
release-images/ | ||
node_modules |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,95 @@ | ||
# code-server | ||
|
||
`code-server` is [VS Code](https://github.com/Microsoft/vscode) running on a | ||
remote server, accessible through the browser. | ||
Run [VS Code](https://github.com/Microsoft/vscode) on any machine anywhere and access it in the browser. | ||
|
||
Try it out: | ||
- **Code everywhere:** Code on your Chromebook, tablet, and laptop with a | ||
consistent dev environment. Develop on a Linux machine and pick up from any | ||
device with a web browser. | ||
- **Server-powered:** Take advantage of large cloud servers to speed up tests, compilations, downloads, and more. | ||
Preserve battery life when you're on the go since all intensive tasks runs on your server. | ||
Make use of a spare computer you have lying around and turn it into a full development environment. | ||
|
||
 | ||
|
||
## Getting started | ||
|
||
For a full setup and walkthrough, please see [./doc/guide.md](./doc/guide.md). | ||
|
||
### Debian, Ubuntu | ||
|
||
```bash | ||
docker run -it -p 127.0.0.1:8080:8080 -v "$PWD:/home/coder/project" -u "$(id -u):$(id -g)" codercom/code-server:latest | ||
curl -sSOL https://github.com/cdr/code-server/releases/download/3.3.0/code-server_3.3.0_amd64.deb | ||
sudo dpkg -i code-server_3.3.0_amd64.deb | ||
systemctl --user enable --now code-server | ||
# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml | ||
``` | ||
|
||
- **Code anywhere:** Code on your Chromebook, tablet, and laptop with a | ||
consistent dev environment. Develop on a Linux machine and pick up from any | ||
device with a web browser. | ||
- **Server-powered:** Take advantage of large cloud servers to speed up tests, | ||
compilations, downloads, and more. Preserve battery life when you're on the go | ||
since all intensive computation runs on your server. | ||
### Fedora, Red Hat, SUSE | ||
|
||
```bash | ||
curl -sSOL https://github.com/cdr/code-server/releases/download/3.3.0/code-server-3.3.0-amd64.rpm | ||
sudo yum install -y code-server-3.3.0-amd64.rpm | ||
systemctl --user enable --now code-server | ||
# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml | ||
``` | ||
|
||
### npm | ||
|
||
 | ||
We recommend installing from `npm` if we don't have a precompiled release for your machine's | ||
platform or architecture. | ||
|
||
## Getting Started | ||
**note:** Installing via `npm` builds native modules on install and so requires C dependencies. | ||
See [./doc/npm.md](./doc/npm.md) for installing these dependencies. | ||
|
||
### Requirements | ||
You will need at least node v12 installed. See [#1633](https://github.com/cdr/code-server/issues/1633). | ||
|
||
- 64-bit host. | ||
- At least 1GB of RAM. | ||
- 2 cores or more are recommended (1 core works but not optimally). | ||
- Secure connection over HTTPS or localhost (required for service workers and | ||
clipboard support). | ||
- For Linux: GLIBC 2.17 or later and GLIBCXX 3.4.15 or later. | ||
```bash | ||
npm install -g code-server | ||
code-server | ||
# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml | ||
``` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To match the others should we put the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Opted against so that user's would read the output but I'll add for visual consistency. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That makes sense. |
||
|
||
### macOS | ||
|
||
```bash | ||
brew install code-server | ||
brew services start code-server | ||
# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml | ||
``` | ||
|
||
### Run over SSH | ||
### Docker | ||
|
||
Use [sshcode](https://github.com/codercom/sshcode) for a simple setup. | ||
```bash | ||
# This will start a code-server container and expose it at http://127.0.0.1:8080. | ||
# It will also mount your current directory into the container as `/home/coder/project` | ||
# and forward your UID/GID so that all file system operations occur as your user outside | ||
# the container. | ||
docker run -it -p 127.0.0.1:8080:8080 \ | ||
-v "$PWD:/home/coder/project" \ | ||
-u "$(id -u):$(id -g)" \ | ||
codercom/code-server:latest | ||
``` | ||
|
||
### Static releases | ||
|
||
### Digital Ocean | ||
We publish self contained `.tar.gz` archives for every release on [github](https://github.com/cdr/code-server/releases). | ||
They bundle the node binary and compiled native modules. | ||
|
||
[](https://marketplace.digitalocean.com/apps/code-server) | ||
1. Download the latest release archive for your system from [github](https://github.com/cdr/code-server/releases). | ||
2. Unpack the release. | ||
3. You can run code-server by executing `./bin/code-server`. | ||
|
||
### Releases | ||
Add the code-server `bin` directory to your `$PATH` to easily execute `code-server` without the full path every time. | ||
|
||
1. [Download a release](https://github.com/cdr/code-server/releases). (Linux and macOS supported. Windows support planned.) | ||
2. Unpack the downloaded release then run the included `code-server` script. | ||
3. In your browser navigate to `localhost:8080`. | ||
Here is an example script for installing and using a static `code-server` release on Linux: | ||
|
||
```bash | ||
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 | ||
sudo mv /usr/local/code-server-3.3.0-linux-amd64 /usr/local/code-server | ||
PATH="$PATH:/usr/local/code-server/bin" | ||
code-server | ||
# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml | ||
``` | ||
|
||
## FAQ | ||
|
||
|
@@ -53,5 +101,5 @@ See [./doc/CONTRIBUTING.md](./doc/CONTRIBUTING.md). | |
|
||
## Enterprise | ||
|
||
Visit [our enterprise page](https://coder.com) for more information about our | ||
Visit [our website](https://coder.com) for more information about our | ||
enterprise offerings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@code-asher only review README.md for now pls