diff --git a/a-team/README.md b/a-team/README.md index cfe9384..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 .` @@ -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` 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