diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..c8779ac --- /dev/null +++ b/install.sh @@ -0,0 +1,48 @@ +#curl -sL https://gitea.vvzvlad.xyz/vvzvlad/soneium/raw/branch/main/install.sh | sh - + +apt-get update +apt-get install apt-transport-https prometheus-node-exporter ca-certificates traceroute systemd-sysv iptables gnupg-agent checkinstall software-properties-common sudo nano curl git locales-all progress tree procps curl wget telnet jq zip gzip tar htop -y +apt-get -y autoremove +apt-get -y clean +apt-get -y autoclean +localectl set-locale LANG=C.UTF-8 + +echo "export HISTTIMEFORMAT='%F, %T '" >> /etc/bash.bashrc +echo "export HISTSIZE=10000" >> /etc/bash.bashrc +echo "export HISTFILESIZE=10000" >> /etc/bash.bashrc +echo "shopt -s histappend" >> /etc/bash.bashrc +echo "export PROMPT_COMMAND='history -a'" >> /etc/bash.bashrc +echo "export HISTCONTROL=ignoredups" >> /etc/bash.bashrc +echo "export LANG=C.UTF-8" >> /etc/bash.bashrc +echo "export LC_ALL=C.UTF-8" >> /etc/bash.bashrc + +echo "alias ls='ls --color=auto'" >> /etc/bash.bashrc +echo "shopt -s cmdhist" >> /etc/bash.bashrc +echo $'"\e[A": history-search-backward' >> ~/.inputrc +echo $'"\e[B": history-search-forward' >> ~/.inputrc + +echo "set nohelp" >> ~/.nanorc +echo "set tabsize 4" >> ~/.nanorc +echo "set tabstospaces" >> ~/.nanorc +echo "set autoindent" >> ~/.nanorc +echo "set positionlog" >> ~/.nanorc +echo "set backup" >> ~/.nanorc +echo "set backupdir /tmp/" >> ~/.nanorc +echo "set locking" >> ~/.nanorc +echo "include /usr/share/nano/*.nanorc" >> ~/.nanorc + + +curl -sL https://get.docker.com | sudo sh - + +mkdir soneium-minato-node +cd soneium-minato-node + +wget "https://gitea.vvzvlad.xyz/vvzvlad/soneium/raw/branch/main/minato-rollup.json" -O minato-rollup.json +wget "https://gitea.vvzvlad.xyz/vvzvlad/soneium/raw/branch/main/minato-genesis.json" -O minato-genesis.json +wget "https://gitea.vvzvlad.xyz/vvzvlad/soneium/raw/branch/main/docker-compose.yml" -O docker-compose.yml +openssl rand -hex 32 > jwt.txt + +SERVER_IP=$(curl -s ifconfig.me) +sed -i 's/###IP###/${SERVER_IP}/g' docker-compose.yml +docker compose up -d +docker compose logs -f --tail 300 \ No newline at end of file