---
# System prepended metadata

title: Untitled

---

geth --datadir "node" --http --http.addr "65.20.77.140" --http.corsdomain "*" --http.api "personal,eth,net,web3,txpool,miner" --networkid 9981 --port "3035" --bootnodes "enode://7c9aa4fafda34fc5d80b31a15e088f90a6204bd3dee77a3c9e538ec14699a55b58c49123cab5c67ca314e5dfea82745c558d24d5d30d2224c3eceb0b652880cb@45.32.31.116:30303" --miner.gasprice 0 --allow-insecure-unlock --unlock "0x692868bD7B7C3cf906B89998DCdDf1c1B785E0b4" --password node/password.txt --mine


geth --datadir "node" --http --http.addr "207.148.77.38" --http.corsdomain "*" --http.api "personal,eth,net,web3,txpool,miner" --networkid 9981 --port "3035" --bootnodes "enode://7c9aa4fafda34fc5d80b31a15e088f90a6204bd3dee77a3c9e538ec14699a55b58c49123cab5c67ca314e5dfea82745c558d24d5d30d2224c3eceb0b652880cb@45.32.31.116:30303" --miner.gasprice 0 --allow-insecure-unlock --unlock "0x2B19B676EB2B87cC981d9233b2aD47f756eE5F1B" --password node/password.txt --mine 


Run bootnode:
geth --datadir node --networkid 9981 --nat extip:45.32.31.116



Open port firewall cho upd, tcp (default: 3035)

check port in use:
sudo lsof -i -P -n | grep LISTEN

check udp, tcp:
sudo ufw status verbose

open udp, tcp port 22:
sudo ufw allow 22


sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"




Tạo user trên server cho ssh:
sudo useradd -m -d /home/username -s /bin/bash username

### Ensure the directory ir owned by the new user
chown -R username:username /home/username/.ssh

### Make sure only the new user has permissions
chmod 700 /home/username/.ssh
chmod 600 /home/username/.ssh/authorized_keys


### install docker, docker-compose:
sudo apt-get remove docker-ce docker-ce-cli containerd.io
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo apt install docker-compose

### Add user to docker command
sudo usermod -a -G docker username





