# 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>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET 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?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
