ghost.sh | ||
README.md |
Ghost
Ghost Node Setup With CryptoBureau
System Requirements
Hardware | Minimum Requirement |
---|---|
CPU | 4 Cores |
RAM | 6 GB |
Disk | 256 GB |
Bandwidth | 60 MBit/s |
Follow our TG : https://t.me/CryptoBureau01
Follow Ghost TG : https://t.me/realGhostChain
Tool Installation Command
To install the necessary tools for managing your Ghost Full node, run the following command in your terminal:
cd $HOME && wget https://git.ghostchain.io/sargiodev08/Ghost/raw/branch/master/ghost.sh && chmod +x ghost.sh && ./ghost.sh
Node Management Script
This script helps you manage Ghost node, providing a simple way to set up, check sync status, view logs, and manage your nodes.
Features
- Install Dependencies: Installs all the required dependencies to set up the Ghost node seamlessly.
- Node Configuration: Enables easy setup and configuration of the Ghost node for new users.
- NAT Binding: Configures Network Address Translation (NAT) and verifies port binding for node connectivity.
- Wallet Management: Simplifies wallet creation, key saving, and updates for seamless integration with the node.
- Service Management: Automates creating, starting, stopping, and restarting Ghost node services.
- Monitoring Tools: Provides tools to check the status, logs, and synchronization of the node for troubleshooting and maintenance.
Menu Options
The script provides an interactive menu with the following options:
-
Install-Dependency
Installs all required dependencies such as software packages and tools necessary for running the Ghost node. -
Install-Ghost
Downloads and installs the Ghost node software. -
Bind-NAT
Configures NAT settings and sets up port 30333 , 9945 bindings for the node. -
Setup-Ghost
The Setup-Ghost option builds the Ghost node:
- Directory Check: Ensures
/root/ghost/ghost-node
exists; otherwise, prompts an error. - Build Process: Starts
cargo build --release
in a detached screen session namedghost_build
, allowing the process to run in the background (takes ~60 minutes). - Monitor Build: Use
screen -r ghost_build
to view progress; detach withCtrl + A + D
. - Error Handling: If the directory is missing, the script exits with instructions to set up the node first.
- Directory Check: Ensures
-
Connect-Ghost
Connects the Ghost node to the blockchain network. -
Service-Build
User Input: During execution, the user is prompted with "Rebuild GHOST Node type: Y" and must type Y to proceed. -
Service-Setup
The Service-Setup option sets up the Ghost node service with specific arguments:
-
Directory Creation: Creates the
/etc/ghost
directory if it doesn't exist. -
Directory Check: Verifies that the Ghost node directory (
/root/ghost/ghost-node
) exists. If not, it exits with instructions to run thesetup_node
function first. -
SHA256 Checksum: Runs a checksum on
/etc/ghost/casper.json
for verification. -
Starter Script Execution:
- First, runs the script with
--set-arguments
to configure the necessary arguments. - Prompts the user during execution:
- Disable bootnode mode [y/N]: User must type y to disable the bootnode mode.
- Boot node address: User will be prompted to paste the following address:
/dns/bootnode69.chain.ghostchain.io/tcp/30334/p2p/12D3KooWF9SWxz9dmy6vfndQhoxqCa7PESaoFWEiF8Jkqh4xKDRf
- First, runs the script with
-
Completion: Displays a success message after the script runs.
-
-
Create-Wallet
Helps the user create a new wallet for the Ghost node. -
Save-Keys
The Save-Keys option allows the user to view and manage their Ghost node keys:
- Key Location: The user's keys are saved in the file located at
/root/ghost/ghost-node/wallet.txt
. - Check Keys: The user can check their saved keys by navigating to this file.
- Edit Keys: To view or edit the keys, the user can use the following command:
nano /root/ghost/ghost-node/wallet.txt
This will open the
wallet.txt
file in thenano
editor, allowing the user to view or make changes to the keys. - Key Location: The user's keys are saved in the file located at
-
Keys-Update-Server
The Keys-Update-Server function allows the user to update their keys on the server:
- Branch Name: First, the user is prompted with the following message:
Enter the branch name to create:
The user should enter their desired branch name. This could be any name they choose for their branch.
Once the user inputs the branch name, the script will proceed to update the keys on the server with the specified branch name.
- Branch Name: First, the user is prompted with the following message:
-
Git-SSH-Keys
The Git-SSH-Keys function prompts the user to enter the SSH key name:
- SSH Key Name: The user will be asked to input their SSH key name with the following message:
Enter the SSH key name (default is $default_key):
The user can either press Enter to use the default key name or provide their custom SSH key name.
After the user provides the key name, the script proceeds to configure the SSH key for the Git repository.
- SSH Key Name: The user will be asked to input their SSH key name with the following message:
-
Keys-Checker
Verifies the saved keys for correctness and usability. -
NAT-Bind-Checker
Checks if the NAT configuration is correctly set up and port 30333 , 9945 are bound. -
Enable-Service
Enables the Ghost node service for automatic startup on reboot. -
Start-Service
Starts the Ghost node service. -
Stop-Service
Stops the running Ghost node service. -
Restart-Service
Restarts the Ghost node service for applying changes. -
Status-Checker
Checks the status of the Ghost node service. -
Logs-Checker
Displays the latest logs to monitor the Ghost node's performance or troubleshoot issues. -
Exit
Exits the script and ends the session.
Conclusion
This Auto Script for Node Management on the Ghost has been created by CryptoBuroMaster. It is a comprehensive solution designed to simplify and enhance the node management experience. By providing a clear and organized interface, it allows users to efficiently manage their nodes with ease. Whether you are a newcomer or an experienced user, this script empowers you to handle node operations seamlessly, ensuring that you can focus on what truly matters in your blockchain journey.
Author
Created by: CryptoBureau-Master
Join our TG : https://t.me/CryptoBureau01