Processor: A processor with 6 cores, x86 architecture.
2. Install node running program
Run the node program using the root user
Use the following command to switch to the root user. You will need to enter the password for the account currently in use on your Ubuntu system. Upon successful switch, the terminal will display the root identifier.
sudo su
Create a program running directory and navigate to it:
mkdir -p /privasea/config && cd /privasea
Download the node installation script setup.sh
Note: If executing source setup.sh fails, please refer to the
# Download the setup.sh script:
wget https://storage.googleapis.com/bkt-privasea-face-pre-public/calc-node/beta/setup.sh
# Grant execution permissions to the setup.sh script:
chmod +x setup.sh
# Run the setup.sh script:
source setup.sh
# Explanation:
# If you are prompted that the wget command is not found, please do the following or ask ChatGPT:
# To install wget on Ubuntu: sudo apt install wget
A directory named usb-ubuntu-node will be generated in the same directory as setup.sh. This is the node program.
Enter the usb-ubuntu-node directory, you can see 4 program files
# Enter the usb-arm-node directory, you can see 4 program files
cd /privasea/usb-ubuntu-node && ls
# Configure the environment variables required to start the USB driver
source usb-driver.sh
3. Configure node running program
Get keystore file
You can directly use the existing wallet keystore. If there is no keystore file, you can execute the following command to generate it:
Note: The program will prompt you to enter a password, please remember this password for future use. The generated keystore file will have a corresponding node address, Please keep it properly to avoid losing it, it will be used in the dashboard configuration
# Enter the program directory
cd /privasea/usb-ubuntu-node
# Run the calculation node
./calc new_keystore
Enter password for a new key: # Enter wallet password
Enter password again to verify: # Enter password again for confirmation
# After the wallet is successfully generated, you will see the following information:
# account address: 0xed78283432F4F73653e493Df0bEB5EC9FA4C33d3
# This is the node address you generated, used for binding in the dashboard
# account filename: keystore:/privasea/config/UTC--2024-1216T11-26-41.2628933482--ed78283432f4f73653e493df0beb5ec9fa4c33d3
# UTC--2024-1216T11-26-41.2628933482--ed78283432f4f73653e493df0beb5ec9fa4c33d3 is the keystore file for the node; this file name is just an example and may differ from your file name.
Instructions: 0xed78283432F4F73653e493Df0bEB5EC9FA4C33d3 is an example and may differ in your case.
Rename the keystore file in the/privasea/usb-ubuntu-node/config folder to wallet_keystore:
# check if there is a keystore file in the /privasea/config directory:
cd /privasea/usb-ubuntu-node/config && ls
# Rename the keystore file obtained in the previous step:
mv ./UTC--2024-1216T11-26-41.2628933482--ed78283432f4f73653e493df0beb5ec9fa4c33d3 ./wallet_keystore
# Replace UTC--2024-1216T11-26-41.2628933482--ed78283432f4f73653e493df0beb5ec9fa4c33d3 with the keystore file name you found
# Check if the wallet_keystore file in the /privasea/usb-ubuntu-node/config folder is correctly modified:
ls
4. Link node address and revenue address
1. Use the wallet address corresponding to the keystore file to link it with the income address on dashboard.
Click set up my node, you will see two pop-up windows of the wallet, you need to click to confirm, and your configuration is complete
5. Start the node
Make sure the usb is inserted correctly. You can check the usb connection status in the system.
#Install the lsusb command:
sudo apt install usbutils
#Check if there is an inserted USB device among the connected USB devices:
lsusb
Note: The USB name you see may be different from the screenshot, please refer to yours. Please make sure that the USB can be recognized by the system.
Enter the /privasea/usb-ubuntu-node, install the USB driver, and then start the node
# Enter the /privasea/usb-ubuntu-node
cd /privasea/usb-ubuntu-node && source usb-driver.sh
# Start the compute node:
./calc calc --usb_sn 1245455750
#Parameter explanation:
# --usb_sn 1251559600 //The USB serial number to run, which can be found on the USB packaging
Note: You will need to enter the password for the keystore file in the running interface.