From a549033d97a2d9be4b2fe148e85579fb4cdc5ae1 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Tue, 17 Dec 2024 18:44:47 +0300 Subject: [PATCH] Add install.sh --- install.sh | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 install.sh 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