# Install Carbon on a self-hosted Rust server

[Rust server guides](https://rustsc.com/learn/index.html.md) / [Server setup](https://rustsc.com/learn/setup/index.html.md)

For a new Carbon install on the public Rust branch, use Carbon's Production build for the operating system of the server. Install it in the game root, then check for Carbon when the server starts.

## Windows

Start with a working vanilla installation. Stop it, then unpack the Windows production ZIP in the directory that holds RustDedicated.exe. Keep the directory structure from the ZIP and use your normal launch script.

## Linux

Stop the server and unpack the Linux archive in the directory that holds RustDedicated. In your Bash launcher, put source ./carbon/tools/environment.sh before the line that starts RustDedicated, with the game root as the working directory. Keep your existing game arguments. If a service starts the server, have the service run that launcher so Carbon gets the same environment on every boot.

## What a successful launch looks like

Run c.version in the server console. A Carbon version and build channel confirm the framework started with Rust. If a manual start works and the Linux service gives you no Carbon version, compare the service's entry point and working directory with the ones you used by hand.

## Sources

- [Carbon production downloads](https://carbonmod.gg/owners/getting-started)
- [Carbon installation by operating system](https://carbonmod.gg/owners/installing-carbon)
- [Carbon Linux launcher source](https://github.com/CarbonCommunity/Carbon/blob/b27f51570ebe53873ff79aea21331290ee2afbd5/tools/helpers/carbon.sh)
- [Carbon console command reference](https://carbonmod.gg/references/commands/)

## Related resources

- [Change Oxide or Carbon](https://rustsc.com/support/guides/change-framework/index.html.md)

---

HTML version: https://rustsc.com/learn/setup/install-carbon-launch-script/
