# Rococo Testnet Setup Guide
## Tools setup
Refer to this [guide](https://github.com/paritytech/polkadot#build-from-source)
## Validators
3 validators are required, namely `Alice`, `Bob`, `Charlie`.
### Build validators
Fetch [polkadot repo](https://github.com/paritytech/polkadot), check out `rococo-v1` branch and commit `9bc8915acd5507a77737371fdd892bb1f6a8db22`.
Go to the root of repo, Build polkadot by:
```
cargo build --release --features=real-overseer
```
After build success, export raw chain spec:
```
./target/release/polkadot build-spec --chain=rococo-local --raw > /testnet-path/rococo-local.json
```
### Run validators
Run 3 validtors. Note to replace `path-to-polkadot-repo` and `testnet-path` with the directories in your local environment.
Alice:
```
RUST_LOG=candidate_backing=trace /path-to-polkadot-repo/target/release/polkadot \
--alice \
--chain=/testnet-path/rococo-local.json \
--rpc-methods=unsafe \
--ws-port=9944 \
--port=30444 \
--wasm-execution=Compiled \
--validator \
--execution=wasm \
-lsync=info \
--base-path=alice
```
Bob:
```
/path-to-polkadot-repo/target/release/polkadot \
--bob \
--chain=/testnet-path/rococo-local.json \
--rpc-methods=unsafe \
--ws-port=9955 \
--port=30555 \
--wasm-execution=Compiled \
--validator \
--execution=native \
-lsync=info \
--base-path=bob
```
Charlie:
```
/path-to-polkadot-repo/target/release/polkadot \
--charlie \
--chain=/testnet-path/rococo-local.json \
--rpc-methods=unsafe \
--ws-port=9966 \
--port=30666 \
--wasm-execution=Compiled \
--validator \
--execution=wasm \
-lsync=info \
--base-path=charlie
```
## Acala Collator
Fetch acala repo, check out `sw/rococo-v1` branch.
Go to the root of repo, build with command:
```
cargo build --release
```
Run Acala collator. Note to replace `path-to-acala-repo`, `testnet-path`.
```
RUST_LOG=cumulus-collator=trace /path-to-acala-repo/target/release/acala \
--collator \
--chain=dev \
--ws-port=9977 \
--port=30777 \
--rpc-methods=unsafe \
--rpc-cors=all \
--wasm-execution=Compiled \
--parachain-id=666 \
--execution=native \
-lsync=debug \
--base-path=acala \
-- \
--chain=/testnet-path/rococo-local.json \
--port 30337 \
--wasm-execution=Compiled
```
## Laminar Collator
Fetch laminar repo, check out `sw/rococo-v1` branch.
Go to the root of repo, build with command:
```
cargo build --release
```
Run Laminar collator. Note to replace `path-to-laminar-repo`, `testnet-path`.
```
RUST_LOG=cumulus-collator=trace /path-to-laminar-repo/target/release/laminar \
--validator \
--chain=dev \
--ws-port=9988 \
--port=30888 \
--rpc-methods=unsafe \
--rpc-cors=all \
--wasm-execution=Compiled \
--parachain-id=777 \
--execution=Native \
--base-path=laminar \
-- \
--chain=/testnet-path/rococo-local.json \
--port 30338 \
--wasm-execution=Compiled
```