2023-08-23 09:27:57 +00:00
|
|
|
1. Download and install one of the following system packages from
|
|
|
|
[GitHub releases](https://github.com/coder/coder/releases/latest):
|
2022-09-08 19:41:00 +00:00
|
|
|
|
2022-09-12 00:50:20 +00:00
|
|
|
- .deb (Debian, Ubuntu)
|
|
|
|
- .rpm (Fedora, CentOS, RHEL, SUSE)
|
|
|
|
- .apk (Alpine)
|
2022-09-08 19:41:00 +00:00
|
|
|
|
2022-09-12 00:50:20 +00:00
|
|
|
1. Run Coder as a system service.
|
2022-09-08 19:41:00 +00:00
|
|
|
|
2023-02-01 20:05:45 +00:00
|
|
|
```console
|
2022-10-07 13:05:56 +00:00
|
|
|
# Optional) Set up an access URL
|
2022-09-12 00:50:20 +00:00
|
|
|
sudo vim /etc/coder.d/coder.env
|
2022-09-08 19:41:00 +00:00
|
|
|
|
2022-09-12 00:50:20 +00:00
|
|
|
# To systemd to start Coder now and on reboot
|
|
|
|
sudo systemctl enable --now coder
|
2022-09-08 19:41:00 +00:00
|
|
|
|
2022-09-12 00:50:20 +00:00
|
|
|
# View the logs to see Coder's URL and ensure a successful start
|
|
|
|
journalctl -u coder.service -b
|
|
|
|
```
|
2022-09-08 19:41:00 +00:00
|
|
|
|
2023-08-23 09:27:57 +00:00
|
|
|
> Set `CODER_ACCESS_URL` to the external URL that users and workspaces will
|
|
|
|
> use to connect to Coder. This is not required if you are using the tunnel.
|
|
|
|
> Learn more about Coder's [configuration options](../admin/configure.md).
|
2022-09-08 19:41:00 +00:00
|
|
|
|
2022-09-12 00:50:20 +00:00
|
|
|
1. Visit the Coder URL in the logs to set up your first account, or use the CLI:
|
2022-09-08 19:41:00 +00:00
|
|
|
|
2023-02-01 20:05:45 +00:00
|
|
|
```console
|
2022-09-12 00:50:20 +00:00
|
|
|
coder login <access-url>
|
|
|
|
```
|
2022-09-08 19:41:00 +00:00
|
|
|
|
|
|
|
## Restarting Coder
|
|
|
|
|
|
|
|
After updating Coder or applying configuration changes, restart the server:
|
|
|
|
|
2023-02-01 20:05:45 +00:00
|
|
|
```console
|
2022-09-08 19:41:00 +00:00
|
|
|
sudo systemctl restart coder
|
|
|
|
```
|
|
|
|
|
|
|
|
## Next steps
|
|
|
|
|
|
|
|
- [Configuring Coder](../admin/configure.md)
|
2023-06-02 20:56:06 +00:00
|
|
|
- [Templates](../templates/index.md)
|