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:
sudo apt install build-essential
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.py
pip 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.xyz
Include:
Your contact details
A brief introduction of your team
Contact person information
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
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.
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
Create and switch to the nubit-da
directory in your home directory:
mkdir -p $HOME/nubit-da/ && cd $HOME/nubit-da