> For the complete documentation index, see [llms.txt](https://paru.gitbook.io/nimbus-book-ja/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://paru.gitbook.io/nimbus-book-ja/4-run-just-the-beacon-node.md).

# 4. ビーコンノードだけを実行する

このページでは、バリデータをアタッチせずにビーコンノードだけを実行する方法を説明します。

バリデータをアタッチせずにビーコンノードを実行することで、ネットワーク全体の匿名性を向上させることができます。

## 1. 依存関係のインストール

Nimbusを正しく動作させるためには、いくつかのパッケージをインストールする必要があります。

### Linux

一般的な Linux ディストリビューションでは、以下の依存関係をインストールします。

```
# Debian と Ubuntu
sudo apt-get install build-essential git

# Fedora
dnf install @development-tools

# ArchlinuxでAURマネージャを使う
yourAURmanager -S base-devel
```

### macOS

パッケージの管理に [Homebrew](https://brew.sh/) を使うことを想定しています。

```
brew install cmake
```

## 2. Nimbus リポジトリをクローンする

以下のコマンドを実行して、[nimbus-eth2](https://github.com/status-im/nimbus-eth2) リポジトリをクローンします。

```
git clone https://github.com/status-im/nimbus-eth2
```

## 3. ビーコンノードをビルドする

上記のディレクトリに移動して、ビーコンノードをビルドします。

```
cd nimbus-eth2
make nimbus_beacon_node
```

*この処理には数分かかる場合があります。処理が終わるまで待ちます。*

## 4. メインネットに接続する

下記を実行してメインネットに接続します。

```
./run-mainnet-beacon-node.sh
```

Web3 プロバイダーのURLを入力するよう促されます。

```
To monitor the Eth1 validator deposit contract, you'll need to pair
the Nimbus beacon node with a Web3 provider capable of serving Eth1
event logs. This could be a locally running Eth1 client such as Geth
or a cloud service such as Infura. For more information please see
our setup guide:

https://status-im.github.io/nimbus-eth2/eth1.html

Please enter a Web3 provider URL:
```

Enter キーを押してスキップします（これはバリデータを実行している場合にのみ重要です）。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://paru.gitbook.io/nimbus-book-ja/4-run-just-the-beacon-node.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.
