1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Debain 13.7 に symbol-shoestring 0.2.6 でノード構築

1
Last updated at Posted at 2026-11-29

symbol-shoestring 0.2.6 がリリースされました。
今回は Debian に symbol-shoestring を使いノードをインストールしてみます。

OSバージョン確認

cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"

Dockerをインストール

# 必要なパッケージ(Debian では lsb-release はデフォルトで入っていないことがあるため不要にしています)
sudo apt update
sudo apt install -y ca-certificates curl jq

# Docker 公式の GPG 鍵
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

# リポジトリ登録(Debian 13 推奨の deb822 形式。コードネームは /etc/os-release から取得 → trixie)
sudo tee /etc/apt/sources.list.d/docker.sources > /dev/null <<EOF
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF

# インストール
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin \
  docker-compose-plugin

# 確認
docker version
docker compose version

# docker グループにユーザーを追加
getent group docker
sudo usermod -aG docker <権限を追加したいアカウント>
getent group docker
exit
exit
再ログイン

pyenv と python 3.14 をインストール

# 未インストールを確認
# Debian 13 には「python」コマンドがありません(python3 だけです)。
# 「command not found」と出れば正常です。
python --version
python3 --version   # システムの Python(3.13)。消さないでください


# ライブラリをインストール
sudo apt update
sudo apt install -y git build-essential zlib1g-dev libncurses-dev libgdbm-dev \
  libssl-dev libreadline-dev libffi-dev curl libbz2-dev libsqlite3-dev \
  liblzma-dev tk-dev xz-utils uuid-dev

# pyenv をインストール
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init - bash)"' >> ~/.bashrc
source ~/.bashrc
pyenv --version

# Python 3.14 系の最新版をインストール
pyenv install --list | grep -E '^\s*3\.14\.'
pyenv install 3.14                     # 3.14 系の最新版を自動で選びます
pyenv global "$(pyenv latest 3.14)"
python --version

symbol-shoestring をインストール

pip install symbol-shoestring
pip install --upgrade pip

pemファイルの作成

mkdir symbol-shoestring
cd symbol-shoestring
openssl genpkey -algorithm ed25519 -out ca.key.pem
ls

※ca.key.pemはインストールし終わって不要になったら消したほうが安全

shoestringウィザードの起動(※ウィザードの中身は割愛します)

cd symbol-shoestring
python3 -m shoestring.wizard
docker compose up -d
しばらくしてから実行
curl http://127.0.0.1:3000/node/info | jq
docker compose down

同期させてしばらくするとノード一覧に表示されます

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?