2020-02-19 01:07:01 +01:00
|
|
|
# code-server
|
2019-01-08 01:46:19 +01:00
|
|
|
|
2020-05-17 22:53:08 +02:00
|
|
|
Run [VS Code](https://github.com/Microsoft/vscode) on any machine anywhere and access it in the browser.
|
2019-03-06 02:45:21 +01:00
|
|
|
|
2020-05-17 22:53:08 +02:00
|
|
|
- **Code everywhere:** Code on your Chromebook, tablet, and laptop with a
|
2020-05-12 07:46:38 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
![Example gif](./doc/assets/code-server.gif)
|
|
|
|
|
2020-05-18 02:47:33 +02:00
|
|
|
## Getting Started
|
2020-05-12 07:46:38 +02:00
|
|
|
|
2020-05-17 22:53:08 +02:00
|
|
|
For a full setup and walkthrough, please see [./doc/guide.md](./doc/guide.md).
|
2020-05-12 07:46:38 +02:00
|
|
|
|
2020-05-20 18:13:03 +02:00
|
|
|
## Install
|
2019-09-27 16:39:29 +02:00
|
|
|
|
2020-05-21 21:17:02 +02:00
|
|
|
You can easily and securely install code-server with our install script on any Linux or macOS machine.
|
2020-05-20 05:41:28 +02:00
|
|
|
|
|
|
|
```bash
|
2020-05-20 18:13:03 +02:00
|
|
|
# First run to print out the install process.
|
2020-05-21 21:17:02 +02:00
|
|
|
curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-run
|
2020-05-20 18:13:03 +02:00
|
|
|
# Now it will actually install.
|
2020-05-21 21:17:02 +02:00
|
|
|
curl -fsSL https://code-server.dev/install.sh | sh
|
2020-05-20 05:41:28 +02:00
|
|
|
```
|
|
|
|
|
2020-05-21 21:17:02 +02:00
|
|
|
```
|
|
|
|
$ curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-run --help
|
|
|
|
|
|
|
|
Installs latest code-server on any macOS or Linux system preferring to use the OS package manager.
|
|
|
|
|
|
|
|
curl -fsSL https://code-server.dev/install.sh | sh -s --
|
|
|
|
|
2020-05-20 18:13:03 +02:00
|
|
|
- For Debian, Ubuntu, Raspbian it will install the latest deb package.
|
|
|
|
- For Fedora, CentOS, RHEL, openSUSE it will install the latest rpm package.
|
|
|
|
- For Arch Linux it will install the AUR package.
|
2020-05-21 21:17:02 +02:00
|
|
|
- For any unrecognized Linux operating system it will install the latest static release into ~/.local
|
|
|
|
- Add ~/.local/bin to your $PATH to run code-server.
|
|
|
|
|
2020-05-20 18:13:03 +02:00
|
|
|
- For macOS it will install the Homebrew package.
|
2020-05-21 21:17:02 +02:00
|
|
|
- If Homebrew is not installed it will install the latest static release into ~/.local
|
|
|
|
- Add ~/.local/bin to your $PATH to run code-server.
|
|
|
|
|
|
|
|
- If ran on an architecture with no binary releases or outdated libc/libcxx, it will install the
|
|
|
|
npm package with yarn or npm.
|
|
|
|
- We only have binary releases for amd64 and arm64 presently.
|
2020-05-15 03:37:58 +02:00
|
|
|
|
2020-05-21 21:17:02 +02:00
|
|
|
--dry-run Enables a dry run where where the steps that would have taken place
|
|
|
|
are printed but do not actually execute.
|
|
|
|
|
|
|
|
--static Forces the installation of a static release into ~/.local
|
|
|
|
|
|
|
|
This flag takes an optional argument for the installation prefix which defaults to "~/.local".
|
|
|
|
code-server will be unarchived into ~/.local/lib/code-server.X.X.X and the binary will be symlinked
|
|
|
|
into "~/.local/bin/code-server". You will need to add ~/.local/bin to your $PATH to use it without
|
|
|
|
the full path.
|
|
|
|
|
|
|
|
To install system wide set the prefix to /usr/local.
|
|
|
|
|
|
|
|
--version Pass to install a specific version instead of the latest release.
|
|
|
|
```
|
2019-09-18 20:21:38 +02:00
|
|
|
|
2020-05-20 18:13:03 +02:00
|
|
|
If you still don't trust our install script, even with the above explaination and the dry run, we have
|
2020-05-21 21:17:02 +02:00
|
|
|
docs in [./doc/install.md](./doc/install.md) that explain how to install `code-server` on a variety of
|
|
|
|
platforms. The script runs the exact same commands.
|
2019-09-27 16:39:29 +02:00
|
|
|
|
2020-05-12 07:46:38 +02:00
|
|
|
### Docker
|
|
|
|
|
|
|
|
```bash
|
2020-05-15 04:01:45 +02:00
|
|
|
# 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.
|
2020-05-15 03:57:10 +02:00
|
|
|
docker run -it -p 127.0.0.1:8080:8080 \
|
|
|
|
-v "$PWD:/home/coder/project" \
|
|
|
|
-u "$(id -u):$(id -g)" \
|
|
|
|
codercom/code-server:latest
|
2020-05-12 07:46:38 +02:00
|
|
|
```
|
|
|
|
|
2020-05-21 21:17:02 +02:00
|
|
|
You should also check out
|
|
|
|
|
2020-02-19 01:07:01 +01:00
|
|
|
## FAQ
|
2019-10-23 18:49:05 +02:00
|
|
|
|
2020-02-19 01:07:01 +01:00
|
|
|
See [./doc/FAQ.md](./doc/FAQ.md).
|
2019-01-08 01:46:19 +01:00
|
|
|
|
2020-03-19 22:53:31 +01:00
|
|
|
## Contributing
|
|
|
|
|
|
|
|
See [./doc/CONTRIBUTING.md](./doc/CONTRIBUTING.md).
|
|
|
|
|
2019-03-04 19:31:27 +01:00
|
|
|
## Enterprise
|
2019-09-27 16:39:29 +02:00
|
|
|
|
2020-05-17 23:57:59 +02:00
|
|
|
Visit [our website](https://coder.com) for more information about our
|
2020-02-19 01:07:01 +01:00
|
|
|
enterprise offerings.
|