# Node for Nubit **Published by:** [String Theory](https://paragraph.com/@string-theory/) **Published on:** 2024-09-12 **URL:** https://paragraph.com/@string-theory/node-for-nubit ## Content 1. Setup Environment1.1 Upgrade and Install DependenciesEnsure your system is up-to-date and equipped with essential development tools:sudo apt update && sudo apt upgrade -y sudo apt install -y make curl tar wget jq aria2 clang pkg-config libssl-dev build-essential 1.2 Install GolangNubit requires Go version 1.22.1 or higher. Follow these steps to install Go:Install essential tools for compiling and building binaries:sudo apt install build-essential Follow the official Go installation guide to install Go 1.22.1 or higher.1.3 Set up Python EnvironmentPrepare the Python environment for AWS services and SSH communications. Using a virtual environment is recommended:Install pip (if not already installed):wget https://bootstrap.pypa.io/get-pip.py sudo python3 get-pip.py pip install pyopenssl --upgrade pip install boto3 paramiko pip install --user virtualenv python3 -m virtualenv ~/myenv source ~/myenv/bin/activate 2. Setup SSH for Private Repos2.1 Contact the Nubit TeamSend your GitHub email to the Nubit team: Email: developers@riema.xyz Include:Your contact detailsA brief introduction of your teamContact person information2.2 Generate New SSH KeysGenerate an SSH key for RiemaLabs:ssh-keygen -t ed25519 -C "your_email@example.com" -f ~/.ssh/riema_id_ed25519 Generate a general SSH key for GitHub (if not already created):ssh-keygen -t ed25519 -C "your_email@example.com" -f ~/.ssh/id_ed25519 2.3 Add SSH Keys to GitHubCopy and add RiemaLabs public key to GitHub:cat ~/.ssh/riema_id_ed25519.pub Copy and add GitHub public key:cat ~/.ssh/id_ed25519.pub Add both public keys to your GitHub account via the GitHub SSH keys settings.2.4 Configure SSH and GitEdit SSH configuration:nano ~/.ssh/config Add the following lines:Redirect Git HTTPS URLs to SSH for RiemaLabs:git config --global url."git@riema.github.com:RiemaLabs".insteadOf https://github.com/RiemaLabs Secure SSH configuration:chmod 600 ~/.ssh/riema_id_ed25519 chmod 644 ~/.ssh/riema_id_ed25519.pub chmod 600 ~/.ssh/id_ed25519 chmod 644 ~/.ssh/id_ed25519.pub chmod 600 ~/.ssh/config Add SSH keys to the SSH agent:eval "$(ssh-agent -s)" ssh-add ~/.ssh/riema_id_ed25519 ssh-add ~/.ssh/id_ed25519 Bypass Go's checksum verification for private repositories:export GOPRIVATE=github.com/RiemaLabs Add this command to your shell profile file (e.g., ~/.bash_profile) to apply it to all sessions:echo 'export GOPRIVATE=github.com/RiemaLabs' >> ~/.bash_profile source ~/.bash_profile 3. Basic ConfigurationCreate and switch to the nubit-da directory in your home directory:mkdir -p $HOME/nubit-da/ && cd $HOME/nubit-da ## Publication Information - [String Theory](https://paragraph.com/@string-theory/): Publication homepage - [All Posts](https://paragraph.com/@string-theory/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@string-theory): Subscribe to updates - [Twitter](https://twitter.com/StringTheoryVal): Follow on Twitter