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:wgethttps://storage.googleapis.com/privasea-face/calc-node/beta/setup.sh# Grant execution permissions to the setup.sh script:chmod+xsetup.sh# Run the setup.sh script:sourcesetup.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 filescd/privasea/usb-ubuntu-node&&ls# Configure the environment variables required to start the USB driversourceusb-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 save this address, it will be used in the dashboard configuration
# Enter the program directorycd/privasea/usb-ubuntu-node# Run the calculation node./calcnew_keystore
Enterpasswordforanewkey:# Enter wallet passwordEnterpasswordagaintoverify:# 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
Use the wallet address corresponding to the keystore file to link it with the income address on dashboard.
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:sudoaptinstallusbutils#Check if there is an inserted USB device among the connected USB devices:lsusb
Enter the /privasea/usb-ubuntu-node, install the USB driver, and then start the node
# Enter the /privasea/usb-ubuntu-nodecd/privasea/usb-ubuntu-node&&sourceusb-driver.sh# Start the compute node:./calccalc--usb_sn1245455750#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.