Ensure 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
Nubit 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.
Prepare 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.pypip install pyopenssl --upgrade pip install boto3 paramiko
pip install --user virtualenv
python3 -m virtualenv ~/myenv
source ~/myenv/bin/activate
Send your GitHub email to the Nubit team:
Email:
developers@riema.xyzInclude:
Your contact details
A brief introduction of your team
Contact person information
Generate 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
Copy 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.
Edit 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/RiemaLabsSecure 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/configAdd SSH keys to the SSH agent:
eval "$(ssh-agent -s)" ssh-add ~/.ssh/riema_id_ed25519 ssh-add ~/.ssh/id_ed25519Bypass Go's checksum verification for private repositories:
export GOPRIVATE=github.com/RiemaLabsAdd 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
Create and switch to the
nubit-dadirectory in your home directory:mkdir -p $HOME/nubit-da/ && cd $HOME/nubit-da
