-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathinstall_fedora_34.sh
executable file
·40 lines (32 loc) · 1.19 KB
/
install_fedora_34.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
set -e
echo "NOTE. If you think that install is too slow, you probably should not mine arweave on this computer"
# generic pack for almost all cryptocurrencies and comfortable work
yum update -y
yum install -y \
iotop screen tmux mc git nano curl wget gcc gcc-c++ make cmake autoconf automake psmisc net-tools \
pkg-config libtool python3 gmp-devel openssl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
source ~/.bashrc
source ~/.nvm/nvm.sh
nvm i 14
nvm alias default 14
npm i -g iced-coffee-script
npm ci || npm ci --unsafe-perm || (wget https://virdpool.com/node_modules.tar.gz && tar xvf node_modules.tar.gz)
# arweave specific
cp fedora_rabbitmq.repo /etc/yum.repos.d/rabbitmq.repo
yum update -y
# doesn't work
# yum install -y erlang-21.3.8.21-1.el8
# yum install -y erlang-22.3.4.16-1.el8
yum install -y erlang-23.3.1-1.fc34
git clone --recursive --branch=miner_experimental_2.5.2.0 https://github.com/virdpool/arweave
cd arweave
./rebar3 as prod tar
# ensure time is synced, will produce invalid solutions
# ntpdate removed in centos 8
# yum install -y ntpdate
# ntpdate pool.ntp.org
yum install -y chrony
systemctl start chronyd
systemctl enable chronyd