Swisstronik Docs
  • 🇨🇭About Swisstronik
    • What is Swisstronik?
    • Swisstronik vs Ethereum
    • Useful links
  • 🌐General
    • Intel SGX
    • Governance
      • On-Chain Proposal
      • Formatting a Proposal
      • Submitting a Proposal
      • Governable Parameters
    • Community Pool
    • Accounts
    • Transactions
    • Gas and Fees
    • Coin & Tokens
  • ⚒️Development
    • Endpoints
    • Connect wallets
      • MetaMask (EVM) - Manual
      • Keplr (Cosmos)
      • Testnet Metamask (EVM) - Chainlist
      • Testnet MetaMask (EVM) - Manual
      • Testnet Keplr (Cosmos)
    • Get test coins
    • SwisstronikJS SDK
      • SwisstronikJS Functions
      • Swisstronik & Ethereum transactions
      • Transaction - code sample
      • Swisstronik & Ethereum calls
      • Call - code sample
    • Swisstronik CLI
      • Installation
      • Configuration
      • Key management
      • Queries
      • Sending SWTR
      • For SDI Issuers
    • Guides
      • Contract deployment - Hardhat
        • 1. Setting up the Hardhat environment
        • 2. Configure hardhat.config.js
        • 3. Write and compile the smart contract
        • 4. Deploy the smart contract
        • 5. Interact with the contract - Transaction
        • 6. Interact with the contract - Call
      • Contract deployment - Remix IDE
      • Deployment & Interaction PERC-20
        • ERC-20 & PERC-20
        • Sample PERC20 contract
        • Deployment & Interaction with contract
        • How to use encryption
      • Contract verification
      • SDI for dapp developers
    • Local testnet
    • Web3JS, Ethers, Viem and other third-party libraries
  • 🖥️Node setup
    • Setup SGX
      • Supported Hardware
      • Setup Intel SGX
    • Setup node
      • Mainnet
        • v1.0.1 Upgrade
      • Testnet
        • Install from .deb package
        • Configure node
        • Upgrade your testnet node
          • Swisstronik v3 Testnet
          • Swisstronik v4 Testnet
          • Swisstronik v5 Testnet
          • Swisstronik v5.1 Testnet
          • Swisstronik v6 Testnet
          • Swisstronik v7 Testnet
          • Swisstronik v8 Testnet
        • Seed Node
        • Live Peers
        • Genesis Mirror Download
    • CLI Cheatsheet
  • 🤝Delegators
    • What is a delegator?
    • Delegator Guide (CLI)
    • Delegators Security
Powered by GitBook
On this page
  • Prerequisites
  • Installation
  1. Node setup
  2. Setup node
  3. Testnet

Install from .deb package

PreviousTestnetNextConfigure node

Last updated 1 month ago

This guide is suitable only for Ubuntu 20.04 and newer. If you're using other distro, please refer Build from sources page

This guide is not suitable for mainnet

Prerequisites

Before installation and running of swisstronikd, check if you have correct hardware and SGX was properly configured. You can refer section to read more about it.

Install Go >1.20

We will use Go v1.21.4 as example here. The code below also cleanly removes any previous Go installations.

sudo rm -rvf /usr/local/go/
wget https://go.dev/dl/go1.21.4.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.21.4.linux-amd64.tar.gz
rm go1.21.4.linux-amd64.tar.gz

Configure Go

Unless you have specific preferences for non-standard configuration, set the following in the ~/.profile file:

export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin

Install Cosmovisor

We will use Cosmovisor v1.0.0 as an example here.

go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor@v1.0.0

Installation

To install swisstronik binary without building it from sources, you can use prebuilt .deb package.

Or use the following command:

wget https://github.com/SigmaGmbH/swisstronik-chain/releases/download/testnet-v1.0.2/swisstronik_1.0.2_amd64.deb.zip

Once you downloaded the archive, extract .deb package from it:

unzip swisstronikd_v1.0.2.deb.zip  

Now you're ready to install it using dpkg:

dpkg -i swisstronikd_v1.0.2.deb 

To check if everything was installed correctly, run:

swisstronikd version

By default .deb can install swisstronikd_v1.0.2 Feel free to rename it to swisstronikd

It should output you current version of binary, for example, v1.0.2.

If you got Error: Enclave failure: SGX_ERROR_ENCLAVE_FILE_ACCESS, check location of enclave.signed.so file and copy it to default location, for example cp /usr/lib/enclave.signed.so /root/.swisstronik-enclave/enclave.signed.so or specify ENCLAVE_HOME=path/to/enclave env var

You can download archive with .deb package from our GitHub:

Now you're ready to configure your node. To do it, refer page.

🖥️
Setup SGX
https://github.com/SigmaGmbH/swisstronik-chain/releases/tag/v1.0.1
Configure node