> For the complete documentation index, see [llms.txt](https://docs.fiammalabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fiammalabs.io/our-product-suite/pragmatically-trustless-bitvm-bitcoin-bridge/user-guides/testnet-beta/how-to-run-the-fiamma-operator/operator-for-linux/2.-start-and-register.md).

# 2. Start and Register

### Start Operator

Run the start script to set up and start the Operator as a system service:

`./start_operator.sh`

**This script will:**

* Create a systemd service for the Operator
* Configure it to run in the current directory
* Start the service and verify it's running
* Set up appropriate logs

### **Register**

1. **Get Main Address Public Key**

The main address's public key is required for registration. Here's how to obtain it:

```
cd operator_for_linux
./bcli operator -n beta-testnet derive-key -s <MAIN_ADDRESS_PRIVATE_KEY>
```

Use `public_key` to complete the registration process below.

2. **Register as Operator**

Execute the following command in the terminal to register as an operator:

```
./bcli operator -n beta-testnet register --invitation-code <INVITATION_CODE> --main-address <MAIN_ADDRESS> --pegin-address <PEGIN_ADDRESS> --pegout-address <PEGOUT_ADDRESS> --public-key <MAIN_ADDRESS_PUBLIC_KEY>
```
