telosnetwork / telos-reth

Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol, in Rust
Apache License 2.0
2 stars 0 forks source link

Document server setup instructions #60

Open poplexity opened 1 month ago

poplexity commented 1 month ago

Here are some notes to get started..

Increase max open files:

vi /etc/security/limits.conf

# add this
* soft nofile 65535
* hard nofile 65535

Install rustup, then install rust.

Install foundryup and then run it to install cast

All the build packages, here's history from current server setup (some are wrong package name):

95 sudo apt install gcc cc 96 sudo apt install gcc 99 sudo apt install openssl-sys 100 sudo apt install openssl-dev 101 sudo apt install openssl 102 sudo apt install libssl-dev 104 sudo apt install pkg-config 106 sudo apt install clang g++ 335 sudo apt install libclang libcxx 336 sudo apt update 337 sudo apt install openssl 338 sudo apt install libiconv 339 sudo apt install libclang 340 sudo apt install libcxx 341 sudo apt install libc++-dev 343 sudo apt install gcc 344 sudo apt install build-essentials 345 sudo apt install build-essential 517 sudo apt install iotop 605 sudo apt install net-tools

Usefull tool for compressing the Freelist in the db, for when the db stat command shows it's big: https://reth.rs/run/troubleshooting.html#compact-the-database