[AIT3] Linux Full+Vali Quick guide by me, zssbecker!

Paste command in ur Linux Terminal. WOOT WOOT

sudo su [If u have winscp and u set up shell : sudo su - , u dont have to put this command]


apt update -y && apt upgrade -y

apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common & -y [docker part]

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

add-apt-repository “deb [arch=amd64] Index of linux/ubuntu/ $(lsb_release -cs) stable”

apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io

systemctl enable docker && service docker start

curl -L “https://github.com/docker/compose/releases/download/v2.10.0/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose
[now current docker-compose version is 2.10.0 , U can check version on : GitHub - docker/compose: Define and run multi-container applications with Docker]

chmod +x /usr/local/bin/docker-compose

export WORKSPACE=testnet
export USERNAME=PutInUrNickName!
mkdir ~/$WORKSPACE

apt install unzip

wget https://github.com/aptos-labs/aptos-core/releases/download/aptos-cli-v0.3.1/aptos-cli-0.3.1-Ubuntu-x86_64.zip [current version is 0.3.1]

unzip aptos-cli-0.3.1-Ubuntu-x86_64.zip

chmod +x aptos

mv aptos /bin
aptos [ u can check ur version : 0.3.1 ]

------- validatoooooor----------

wget https://raw.githubusercontent.com/aptos-labs/aptos-core/main/docker/compose/aptos-node/docker-compose.yaml
wget https://raw.githubusercontent.com/aptos-labs/aptos-core/main/docker/compose/aptos-node/validator.yaml

aptos genesis generate-keys --output-dir ~/$WORKSPACE/keys [ 4 keys generated ]

aptos genesis set-validator-configuration
–local-repository-dir ~/$WORKSPACE
–username $yourPreviousUSERNAME
–owner-public-identity-file ~/$WORKSPACE/keys/public-keys.yaml
–validator-host ur.ip.put.in:6180
–full-node-host ur.fullnodeip.put.in:6182
–stake-amount 100000000000000

aptos genesis generate-layout-template --output-file ~/$WORKSPACE/layout.yaml

nano layout.yaml [or sudo nano layout.yaml]

root_key: “D04470F43AB6AEAA4EB616B72128881EEF77346F2075FFE68E14BA7DEBD8095E”
users: [“username you specified from previous step”]
chain_id: 43
allow_new_validators: false
epoch_duration_secs: 7200
is_test: true
min_stake: 100000000000000
min_voting_threshold: 100000000000000
max_stake: 100000000000000000
recurring_lockup_duration_secs: 86400
required_proposer_stake: 100000000000000
rewards_apy_percentage: 10
voting_duration_secs: 43200
voting_power_increase_limit: 20
[ paste it all, and check chain id is 43, Correct rootkey, and first ur username ]

wget https://github.com/aptos-labs/aptos-core/releases/download/aptos-framework-v0.3.0/framework.mrb -P ~/$WORKSPACE

aptos genesis generate-genesis --local-repository-dir ~/$WORKSPACE --output-dir ~/$WORKSPACE

docker-compose up -d

curl 2> /dev/null | grep “aptos_state_sync_version”
[ u can check ur node sync state ]

and then Check ur Node whether ur one works well : https://ait.aptos-node.info/
Change port 8080 → 80

---------------- full node ------ Turn on Ur different server! —
Set up process before validator process. and then

wget https://raw.githubusercontent.com/aptos-labs/aptos-core/main/docker/compose/aptos-node/docker-compose-fullnode.yaml
wget https://raw.githubusercontent.com/aptos-labs/aptos-core/main/docker/compose/aptos-node/fullnode.yaml
[ in ur ‘cd testnet’ folder ]

nano fullnode.yaml

and then find this :

  • network_id:
    private: “vfn”
    listen_address: “/ip4/”
    - “/ip4/this one! u have to change it to ur Validator IP, put ur IP plz/tcp/6181/noise-ik/f0274c2774519281a8332d0bb9d8101bd58bc7bb154b38039bc9096ce04e1237/handshake/0”
    role: “Validator” ]
    Change next to /ip4/ , u have to put ur Validator ip
  • "/ip4/

And then copy ur
This Three files in ur validator folder,
Paste it in ur FullNode folder.

docker-compose -f docker-compose-fullnode.yaml up -d

and then Check ur FullNode whether ur one works well : https://ait.aptos-node.info/
Change port 8080 → 80 , 6180 → 6182

Done ! Woot Woot .

Yep, I m a Hypeeeed Degen ape big Fan of Aptos, I love this Aptos Movemont #LFM Community ! Keep Ur Degen But some more Researching & Enthusiastic! , ty ser.

Btw, If u find this problem →
aptos genesis generate-genesis --local-repository-dir ~/$WORKSPACE --output-dir ~/$WORKSPACE
“Error”: “Unexpected error: while parsing a node, did not find expected node content at line 2
column 1”

I recommend u use cargo install version

U should uninstall Aptos and install Aptos again :

cargo install --git ht tps://github.com/aptos-labs/aptos-core.git aptos --branch testnet

and then

aptos genesis generate-genesis --local-repository-dir ~/$WORKSPACE --output-dir ~/$WORKSPACE

Have a Aptos Day ser :slight_smile:

-medium alt3 :Welcome to Aptos Incentivized Testnet 3 | by Aptos | Aptoslabs | Aug, 2022 | Medium
-Ofiicial Guide :Node Requirements | Aptos Docs
-IfUWantGuru… :Nodes Guru - Aptos (EN guide)