Browse Source

Merge pull request #4 from blackjok3rtt/master

Fixes
revert-24-test_rpcbind_to_assetname
patchkez 7 years ago
committed by GitHub
parent
commit
7f4499d296
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      a-team/README.md
  2. 1
      a-team/scripts/install/01-notary.conf
  3. 18
      a-team/scripts/install/applytweaks.sh
  4. 8
      a-team/scripts/install/symlinks.sh

6
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`

1
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

18
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

8
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

Loading…
Cancel
Save