forked from notional-labs/notional
-
Notifications
You must be signed in to change notification settings - Fork 0
/
standup.bash
49 lines (30 loc) · 1.55 KB
/
standup.bash
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
40
41
42
43
44
45
#!/bin/bash
# Keys for arch packages
pacman -Syyu archlinux-keyring
# Utilities needed for smooth nodes
pacman -Syyu aria2 atop autoconf automake base binutils bison bmon btrfs-progs clang cronie cryptsetup docker dstat fakeroot flex gcc git go gptfdisk groff grub haveged htop iftop iptraf-ng jq llvm lvm2 m4 make mdadm neovim net-tools nethogs openssh patch pkgconf python rsync rustup screen sudo texinfo unzip vi vim vnstat wget which xfsprogs hddtemp python-setuptools npm python-bottle python-docker python-matplotlib python-netifaces python-zeroconf python-pystache time nload nmon glances gtop bwm-ng bpytop duf go-ipfs fish pigz zerotier-one sysstat github-cli pm2
# IPFS cluster tooling
# pigz -r --fast data #pigz parallel compression
# IPFS only needs to use the server profile at hetzner.
ipfs init -p badgerds,server
git clone https://github.com/ipfs/ipfs-cluster.git
cd ipfs-cluster
go install ./...
sysctl -w net.core.rmem_max=2500000
pm2 start "ipfs daemon"
# SystemD Units
systemctl enable systemd-resolved
systemctl start systemd-resolved
systemctl enable systemd-timesyncd
systemctl start systemd-timesyncd
systemctl enable vnstat
systemctl start vnstat
systemctl enable zerotier-one
systemctl start zerotier-one
# Join Zerotier: Only for rpc nodes without keys
zerotier-cli join 9f77fc393e7dfae7
# Open File Limits
echo "root hard nofile 150000" >> /etc/security/limits.conf
echo "root soft nofile 150000" >> /etc/security/limits.conf
echo "* hard nofile 150000" >> /etc/security/limits.conf
echo "* soft nofile 150000" >> /etc/security/limits.conf