From 1bb58e7d65989756d51d7ad75cfa4d6d07d41281 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Tue, 27 Mar 2018 11:53:38 +0800 Subject: [PATCH 1/3] modified: a-team/scripts/install/01-notary.conf modified: a-team/scripts/install/applytweaks.sh modified: a-team/scripts/install/symlinks.sh --- a-team/scripts/install/01-notary.conf | 1 - a-team/scripts/install/applytweaks.sh | 18 ++++++++++++++---- a-team/scripts/install/symlinks.sh | 8 -------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/a-team/scripts/install/01-notary.conf b/a-team/scripts/install/01-notary.conf index 5317877..fbaa6fd 100644 --- a/a-team/scripts/install/01-notary.conf +++ b/a-team/scripts/install/01-notary.conf @@ -1,5 +1,4 @@ net.core.default_qdisc=fq -net.ipv4.tcp_congestion_control=bbr net.core.rmem_default = 1048576 net.core.wmem_default = 1048576 net.core.rmem_max = 16777216 diff --git a/a-team/scripts/install/applytweaks.sh b/a-team/scripts/install/applytweaks.sh index 2ffe642..cfe6b2d 100755 --- a/a-team/scripts/install/applytweaks.sh +++ b/a-team/scripts/install/applytweaks.sh @@ -1,5 +1,15 @@ -sudo cp 01-notary.conf /etc/sysctl.d/ -echo "tcp_bbr" | sudo tee --append /etc/modules-load.d/modules.conf -echo "* soft nofile 1000000" | sudo tee --append /etc/security/limits.conf -echo "* hard nofile 1000000" | sudo tee --append /etc/security/limits.conf +#Check if BBR Module is avalible +if [ "$(sudo modprobe tcp_bbr)" != "" ] + then + echo "tcp_bbr Module not supported, install other network tweaks" + sudo cp 01-notary.conf /etc/sysctl.d/ + else + echo "tcp_bbr Module is supported, install it with network tweaks." + echo "net.ipv4.tcp_congestion_control=bbr" | tee --append 01-notary.conf + sudo cp 01-notary.conf /etc/sysctl.d/ + echo "tcp_bbr" | sudo tee --append /etc/modules-load.d/modules.conf + fi +#Set the ulimit for open files for the user. +echo "$USER soft nofile 1000000" | sudo tee --append /etc/security/limits.conf +echo "$USER hard nofile 1000000" | sudo tee --append /etc/security/limits.conf echo "session required pam_limits.so" | sudo tee --append /etc/pam.d/common-session diff --git a/a-team/scripts/install/symlinks.sh b/a-team/scripts/install/symlinks.sh index 9dd3398..3dfce60 100755 --- a/a-team/scripts/install/symlinks.sh +++ b/a-team/scripts/install/symlinks.sh @@ -2,23 +2,15 @@ cd ~ #Link Bitcoin Exec's. sudo ln -sf /home/$USER/bitcoin/src/bitcoin-cli /usr/local/bin/bitcoin-cli sudo ln -sf /home/$USER/bitcoin/src/bitcoind /usr/local/bin/bitcoind -sudo chmod +x /usr/local/bin/bitcoin-cli -sudo chmod +x /usr/local/bin/bitcoind #Link Komodo Exec's. sudo ln -sf /home/$USER/komodo/src/komodo-cli /usr/local/bin/komodo-cli sudo ln -sf /home/$USER/komodo/src/komodod /usr/local/bin/komodod -sudo chmod +x /usr/local/bin/komodo-cli -sudo chmod +x /usr/local/bin/komodod #Link Chips Exec's sudo ln -sf /home/$USER/chips3/src/chips-cli /usr/local/bin/chips-cli sudo ln -sf /home/$USER/chips3/src/chipsd /usr/local/bin/chipsd -sudo chmod +x /usr/local/bin/chips-cli -sudo chmod +x /usr/local/bin/chipsd #Link scripts sudo ln -sf /home/$USER/scripts/acsplit /usr/local/bin/acsplit sudo ln -sf /home/$USER/scripts/assets-cli /usr/local/bin/assets-cli -sudo chmod +x /usr/local/bin/acsplit -sudo chmod +x /usr/local/bin/assets-cli From 168ade35c28e49393d59d5c5e4a0e4d0638487f7 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Tue, 27 Mar 2018 12:00:45 +0800 Subject: [PATCH 2/3] modified: a-team/README.md --- a-team/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/a-team/README.md b/a-team/README.md index cfe9384..e51a10c 100644 --- a/a-team/README.md +++ b/a-team/README.md @@ -93,10 +93,10 @@ The `genwallet.sh` script will create a random passphrase into ~/SuperNET/iguana >`./genwallet.sh` -If you have a passphrase already create passphrase.txt with it. +If you have a passphrase already create passphrase.txt with it. ** Make sure to place a space before the `echo` command so your passphrase is not saved in bash history.** >`cd ~/scripts/install` ->`echo passphrase="your passphrase in quotes" > ~/SuperNET/iguana/passphrase.txt` +>` echo passphrase="your passphrase in quotes" > ~/SuperNET/iguana/passphrase.txt` Generate the wallet.txt file >`./genwallet2.sh` From 5ae41bee59fe5def329eb5690759ac059fe7b319 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Tue, 27 Mar 2018 16:28:16 +0800 Subject: [PATCH 3/3] modified: a-team/README.md --- a-team/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a-team/README.md b/a-team/README.md index e51a10c..17f689f 100644 --- a/a-team/README.md +++ b/a-team/README.md @@ -35,7 +35,7 @@ Save and Exit, then run the following commands to restart ssh server. >`sudo systemctl start sshd` #### Install the Scripts from my gitrepo -> `git clone https://github.com/blackjok3rtt/komodotools.git` +> `git clone https://github.com/KomodoPlatform/komodotools.git` > `cp -r komodotools/a-team/scripts .`