Skip to content

Infrastructure Setup & Node Deployment: Configuring Ubuntu CVM via Web Terminal (TTYD) for Nexus CLI (ZKVM) using Rust. #2071

@AgungPrabowo123

Description

@AgungPrabowo123

Use case

Problem: Need a reliable, accessible, and persistent environment to run a Web3/Blockchain node (Nexus Network) in the cloud without relying on local hardware resources.
Solution: Deploying a Cloud Virtual Machine (CVM) accessible directly via a web browser (ttyd), ensuring seamless remote access. The setup utilizes screen for persistent background processes, ensuring the node runs 24/7 even after the web session is closed.

Proposal

The objective was to set up a secure and optimized environment on an Ubuntu server (acting as the root user) to compile and run the Nexus CLI.

Here are the detailed steps executed to achieve this:

1. Cloud Infrastructure & Remote Access Setup

  • Provisioned a Cloud Virtual Machine (CVM) running Ubuntu OS.
  • Accessed the server as the root user using TTYD (a tool that shares the terminal over the web), allowing direct configuration via a standard web browser.

2. System Update & Dependencies Installation

Ensured the system is up-to-date and installed essential network and background management tools.

apt-get update && apt-get upgrade -y
apt-get install screen curl build-essential -y
bash
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf [https://sh.rustup.rs](https://sh.rustup.rs) | sh
# Reload environment path
source $HOME/.cargo/env
# Create a new screen session named 'nexus-node'
screen -S nexus-node

# Download and run the Nexus CLI installer
curl [https://cli.nexus.xyz/](https://cli.nexus.xyz/) | sh

[terimnal web ttyd ubuntu.yml](https://github.com/user-attachments/files/24855864/terimnal.web.ttyd.ubuntu.yml)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions