├── BlockMesh.sh ├── README.md └── version.sh /BlockMesh.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Node Mafia ASCII Art 4 | echo " 5 | __ _ __ _ 6 | /\ \ \ ___ __| | ___ /\/\ __ _ / _|(_) __ _ 7 | / \/ / / _ \ / _\` | / _ \ / \ / _\` || |_ | | / _\` | 8 | / /\ / | (_) || (_| || __// /\/\ \| (_| || _|| || (_| | 9 | \_\ \/ \___/ \__,_| \___|\/ \/ \__,_||_| |_| \__,_| 10 | 11 | EN Telegram: soon.. 12 | RU Telegram: https://t.me/nodemafia 13 | GitHub: https://github.com/NodeMafia 14 | Medium: https://medium.com/@nodemafia 15 | Teletype: https://teletype.in/@nodemafia 16 | Twitter: https://x.com/NodeMafia 17 | " 18 | 19 | # Menu selection 20 | echo "Choose an action:" 21 | echo "1. Install BlockMesh" 22 | echo "2. View logs" 23 | echo "3. Delete BlockMesh node" 24 | echo "4. Stop BlockMesh" 25 | echo "5. Update BlockMesh" 26 | read -p "Enter action number: " ACTION 27 | 28 | # Define the current user and home directory 29 | USERNAME=$(whoami) 30 | HOME_DIR=$(eval echo ~$USERNAME) 31 | 32 | case $ACTION in 33 | 1) 34 | echo "Installing BlockMesh node" 35 | 36 | # Check for tar command and install it if not found 37 | if ! command -v tar &> /dev/null; then 38 | sudo apt install tar -y 39 | fi 40 | sleep 1 41 | 42 | # Загружаем и исполняем скрипт для получения последней версии BlockMesh 43 | VERSION_URL=$(bash <(curl -s https://raw.githubusercontent.com/NodeMafia/BlockMeshGuide/refs/heads/main/version.sh)) 44 | 45 | # Загружаем бинарник BlockMesh 46 | wget $VERSION_URL 47 | 48 | # Extract the archive 49 | tar -xzvf blockmesh-cli-x86_64-unknown-linux-gnu.tar.gz 50 | sleep 1 51 | 52 | # Remove the archive 53 | rm blockmesh-cli-x86_64-unknown-linux-gnu.tar.gz 54 | 55 | # Navigate to the node folder 56 | cd target/x86_64-unknown-linux-gnu/release/ 57 | 58 | # Prompt user for input 59 | echo "Enter your email:" 60 | read USER_EMAIL 61 | 62 | echo "Enter your password:" 63 | read -s USER_PASSWORD 64 | 65 | # Create or update the service file 66 | sudo bash -c "cat < /etc/systemd/system/blockmesh.service 67 | [Unit] 68 | Description=BlockMesh CLI Service 69 | After=network.target 70 | 71 | [Service] 72 | User=$USERNAME 73 | ExecStart=$HOME_DIR/target/x86_64-unknown-linux-gnu/release/blockmesh-cli login --email $USER_EMAIL --password $USER_PASSWORD 74 | WorkingDirectory=$HOME_DIR/target/x86_64-unknown-linux-gnu/release 75 | Restart=on-failure 76 | 77 | [Install] 78 | WantedBy=multi-user.target 79 | EOT" 80 | 81 | # Reload systemd services and enable BlockMesh service 82 | sudo systemctl daemon-reload 83 | sleep 1 84 | sudo systemctl enable blockmesh 85 | sudo systemctl start blockmesh 86 | 87 | # Final output 88 | echo "Installation completed successfully" 89 | ;; 90 | 91 | 2) 92 | # View BlockMesh logs 93 | echo "Viewing BlockMesh logs" 94 | sudo journalctl -u blockmesh -f 95 | ;; 96 | 3) 97 | # Delete BlockMesh node 98 | echo "Deleting BlockMesh node" 99 | sudo systemctl stop blockmesh 100 | sudo systemctl disable blockmesh 101 | sudo rm /etc/systemd/system/blockmesh.service 102 | sudo systemctl daemon-reload 103 | rm -rf target 104 | echo "BlockMesh node deleted" 105 | ;; 106 | 4) 107 | # Stop BlockMesh 108 | echo "Stopping BlockMesh" 109 | sudo systemctl stop blockmesh 110 | echo "BlockMesh service stopped" 111 | ;; 112 | 5) 113 | echo "Updating BlockMesh node..." 114 | 115 | # Stop and disable the service 116 | sudo systemctl stop blockmesh 117 | sudo systemctl disable blockmesh 118 | sudo rm /etc/systemd/system/blockmesh.service 119 | sudo systemctl daemon-reload 120 | sleep 1 121 | 122 | # Remove old node files 123 | rm -rf target 124 | sleep 1 125 | 126 | # Получаем ссылку на последнюю версию через version.sh 127 | VERSION_URL=$(bash <(curl -s https://raw.githubusercontent.com/NodeMafia/BlockMeshGuide/refs/heads/main/version.sh)) 128 | 129 | # Загружаем бинарник новой версии 130 | wget $VERSION_URL 131 | 132 | # Extract the archive 133 | tar -xzvf blockmesh-cli-x86_64-unknown-linux-gnu.tar.gz 134 | sleep 1 135 | 136 | # Remove the archive 137 | rm blockmesh-cli-x86_64-unknown-linux-gnu.tar.gz 138 | 139 | # Navigate to the release folder 140 | cd target/x86_64-unknown-linux-gnu/release/ 141 | 142 | # Prompt user for input to update variables 143 | echo "Enter your email for BlockMesh:" 144 | read USER_EMAIL 145 | echo "Enter your password for BlockMesh:" 146 | read -s USER_PASSWORD 147 | 148 | # Create or update the service file 149 | sudo bash -c "cat < /etc/systemd/system/blockmesh.service 150 | [Unit] 151 | Description=BlockMesh CLI Service 152 | After=network.target 153 | 154 | [Service] 155 | User=$USERNAME 156 | ExecStart=$HOME_DIR/target/x86_64-unknown-linux-gnu/release/blockmesh-cli login --email $USER_EMAIL --password $USER_PASSWORD 157 | WorkingDirectory=$HOME_DIR/target/x86_64-unknown-linux-gnu/release 158 | Restart=on-failure 159 | 160 | [Install] 161 | WantedBy=multi-user.target 162 | EOT" 163 | 164 | # Restart the service 165 | sudo systemctl daemon-reload 166 | sleep 1 167 | sudo systemctl enable blockmesh 168 | sudo systemctl restart blockmesh 169 | 170 | # Final output 171 | echo "Update completed, and node is running!" 172 | ;; 173 | *) 174 | echo "Invalid selection, exiting..." 175 | ;; 176 | esac 177 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## BlockMesh: A Secure Open-source Network for Ethical Oversight of AI 2 | 3 | ![image](https://github.com/user-attachments/assets/db3fb9db-a7b4-44e1-9744-9194ac78bb2d) 4 | 5 | 6 | While BlockMesh has yet to secure investment, it is already forging significant partnerships with projects like Backpack and Eclipse. This ambitious collaboration highlights the project’s future potential and its ability to gain traction in the decentralized ecosystem. 7 | 8 | ## Early Opportunities and Rewards for Participants 9 | 10 | Currently, BlockMesh offers an early participation phase that provides opportunities for users to engage with the project and earn rewards. This phase includes two main activities: 11 | 12 | 1.**Installing a browser extension:** A lightweight, user-friendly tool that integrates with BlockMesh’s decentralized communication platform. 13 | 14 | 2.**Running a node:** Participants can install a BlockMesh node on a server with minimal specifications. This straightforward setup not only contributes to the network’s decentralization but also allows users to earn points for their involvement. 15 | 16 | ## Installing a browser extension 17 | 18 | First of all we will need one of the wallets: Backpack, Solflare or Phantom. 19 | Go to the [BlockMesh website](https://app.blockmesh.xyz/register?invite_code=nodemafia) and register via your e-mail. After registration, confirm your email by checking your mailbox. 20 | 21 | ![image](https://github.com/user-attachments/assets/b49420f5-cbfb-4029-86a0-35ca629b70af) 22 | 23 | Next, connect our wallet and Twitter account. To connect Twitter, we need to subscribe to the [official BlockMesh account](https://x.com/blockmesh_xyz). 24 | 25 | For all of this, BlockMesh Site > Perks > Connect Wallet or Connect Twitter. 26 | 27 | After successfully connecting Perks, we can proceed to install the browser extension. Follow the link to [Chrome Web Store](https://chromewebstore.google.com/detail/blockmesh-network/obfhoiefijlolgdmphcekifedagnkfjp) and download the extension. Log in to your account. Browser Node is installed. 28 | 29 | ![image](https://github.com/user-attachments/assets/c52394e0-9a0d-4c0e-b3f5-5226f1146d54) 30 | 31 | 32 | You can track your activity [here](https://app.blockmesh.xyz/ui/dashboard). 33 | 34 | ## Running a node on Linux (No longer supported by the developer Blockmesh) 35 | For a successful launch, we need to register on the [BlockMesh website](https://app.blockmesh.xyz/register?invite_code=nodemafia). Confirm your email and remember your password. 36 | 37 | **System requirements:** 1CPU/1RAM/5SSD — minimal and Ubuntu 22.04. 38 | 39 | You can run a quick installation using our installer(script). Just paste the link into the command line and press Enter. 40 | 41 | 42 | ![image](https://github.com/user-attachments/assets/ba89133f-7731-4f88-aef5-db99a3117e2c) 43 | 44 | ``` 45 | curl -sO https://raw.githubusercontent.com/NodeMafia/BlockMeshGuide/refs/heads/main/BlockMesh.sh && chmod +x BlockMesh.sh && ./BlockMesh.sh 46 | ``` 47 | Login is by your email and password. The script also allows you to track node logs and delete a node. You can track your activity [here](https://app.blockmesh.xyz/ui/dashboard). 48 | 49 | ## Conclusion.Why this project is unique. 50 | 51 | BlockMesh is positioning itself as a promising open-source network designed for secure, decentralized oversight of AI systems. While still in its early stages without formal investment, the project has already gained momentum through key partnerships with **Backpack** and **Eclipse**, signaling its potential to become a significant player in the decentralized ecosystem. 52 | 53 | BlockMesh provides early participants with valuable opportunities to engage through two key activities: **installing a browser extension** and **running a node on a server**. These activities not only contribute to the network’s decentralization but also offer participants rewards in the form of points, making it accessible and rewarding to be involved at an early stage. 54 | 55 | ## NodeMafia. We hope our content is useful for you. 56 | ![image](https://github.com/user-attachments/assets/e0dc7aee-f823-41d2-a406-9e8837778964) 57 | 58 | GitHub: https://github.com/NodeMafia 59 | 60 | Medium: https://medium.com/@nodemafia 61 | 62 | Telegram: https://t.me/nodemafia 63 | 64 | Teletype: https://teletype.in/@nodemafia 65 | 66 | Twitter: https://x.com/NodeMafia 67 | -------------------------------------------------------------------------------- /version.sh: -------------------------------------------------------------------------------- 1 | wget https://github.com/block-mesh/block-mesh-monorepo/releases/download/v0.0.377/blockmesh-cli-x86_64-unknown-linux-gnu.tar.gz 2 | --------------------------------------------------------------------------------