Start Here
apt-get update
apt-get install python3 python3-pip python-lxc libssl-dev git -y
apt-get install ufw
apt-get install keychain
pip3 install --upgrade setuptools
pip3 install ansible
pip3 install -U cryptography
apt-get install nano
apt install jq
last command also need to be installed in each container
export user=your_user
Create ssk key
ssh-keygen -t rsa -b 2048
copy the ssh key to inventory.yml
cat "/root/.ssh/id_rsa.pub"
copy ssh key to PC and convert it in mobokeygen
nano ~/.bashrc
# keychain reuse ssh-agent between logins
/usr/bin/keychain $HOME/.ssh/id_rsa
source $HOME/.keychain/$HOSTNAME-sh
(write this command)
. !$
enter password
# quotes are important here
export ssh_pub_key="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC12Zn+Xbnw..."
Create user and set a strong password
adduser $user
Give user sudo access, make ssh directory, populate key
usermod -aG sudo $user
mkdir /home/$user/.ssh
in youtube description angle brackets are not allowed so in the command below replace the word "angle_brackets" with two greater than sign(see the video for exact command line)
echo $ssh_pub_key angle_brackets /home/$user/.ssh/authorized_keys
chown $user:$user -R /home/$user/
Clone the repo
# Don't remove the --recurse-submodules
git clone --recurse-submodules https://github.com/rmeleromira/ansibl...
cd ansible-zencash-nodes/
disable root login
nano "/root/ansible-zencash-nodes/roles/master/tasks/main.yml"
nano "/root/ansible-zencash-nodes/roles/master/tasks/ssh.yml"
Run the playbook
ansible-playbook nodes.yml
You can also use a official guide to create z addresses to send the challenge balances
https://horizenofficial.atlassian.net...
OR
Generate and view the z addresses to send the challenge balances
ansible-playbook get-addresses.yml
ansible-playbook get-balances.yml
NOTE: Until the node has synchronized the entire blockchain, the balance will not be reflected.Therefore do not be alarmed if the balance isn't shown immediately after the transaction is submitted from Arizen and mined in a block.it will take 16 to 24 hours to synchronized.
Attach to container console
lxc-attach -n sn1.example.com
to check the block
zen-cli getinfo
zen-cli getnetworkinfo
to check balances
zen-cli listaddresses
zen-cli z_gettotalbalance
zen-cli listaddressgroupings
zen-cli z_sendmany znkW5n79nHN4STx5kcATrdyfABYRZdQ "[{\"amount\": 0.02490000, \"address\": \"zcMpyYcBYfpjxo7cuY3HR2NLnG4DHsZd5xE32KPRCPLbujbBWTarbSEG2YbeW9Kb2cXXMFvwnfpppHUav5Bbgc5v\"}]"
zen-cli z_sendmany znp7hfwCwZCNBS5u8BRHngT2nuxVf2 '[{"address":"'$(zen-cli z_listaddresses | jq -r .[0])'","amount" : 0.02485000},{"address":"'$(zen-cli z_listaddresses | jq -r .[1])'","amount" : 0.02485000}]'
after transactions confirm, restart the tracker client to register your node and follow the logs
systemctl restart nodetracker
if you want to see live log file(optional)
journalctl -f
goto link below and check for your node
https://securenodes3.eu.zensystem.io/
Sourse Guide
https://github.com/rmeleromira/ansibl...
To change your user password:
passwd
inventory.yaml you'll need to use the ansible-vault decrypt command ansible-vault decrypt inventory.yml then re-crypt it with the new passowrd. (not if you never encrypted the file, then any random string will work as a "password")
to change the id_rsa passphrase
ssh-keygen -p -f ~/.ssh/id_rsa
Failed run destroy container
lxc-stop -n container_name ; lxc-destroy -n container_name
Encrypting vault & using password.sh
ansible-vault encrypt inventory.yml
ansible-vault decrypt inventory.yml
Save that password as you'll need it to run the playbooks. So you don't have to continuously enter your password, you can set it in your environment variable.
source password.sh
To start ssh on the containers
ansible-playbook start-ssh.yml
To stop ssh on the containers
ansible-playbook stop-ssh.yml
Enable root login over SSH:
nano /etc/ssh/sshd_config
Add a PermitRootLogin yes
# Authentication:
#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
Restart the SSH server:
service sshd restart
please like, subscribe and share this video
Assistance to create multiple nodes on vps is available for small donation of 5 zen
donate : znTpcUT1651yTfh34tkqwezpSqFok5nVm9a
COPYRIGHT DISCLAIMER:
Under section 107 of the Copyright Act of 1976, allowance is made for “fair use” for purposes such as criticism, comment, news reporting, teaching, scholarship, education and research.
life facebook Multiple Securenode & Supernode on One VPS | Ansible Guide | |
12 Likes | 12 Dislikes |
656 views views | 6.5K followers |
Education | Upload TimePublished on 22 Nov 2018 |
Related keywords
cointelegraph facebook,crypto中文,cryptocurrency chart,currency definition,instagram,masternode buzz,index of series,cryptocurrency แปลว่า,ইনকিলাব,masternodes,this too shall pass,cryptocurrency foin,internet download manager,currency in ireland,minigolf mulhouse,cryptocurrency mining คือ,cointelegraph argentina,cryptocurrency facebook,richard nixon,masternode hosting platform,minigolf deauville,life support,masternode coins,blockshow startup boost,iconology,cryptocurrency meaning,this way up,richard branson,life of pi,life tv,this is me,this old house,currency transaction report,cryptoblk,richard sherman,thistle,icon,icom,crypto revolt,cointelegraph usa,blockshow vegas,icon theater,inr to bdt,iconic definition,cointelegraph español telegram,blockshow europe,blockshow berlin,icon meals,minigiants,richard dawson,life in a metro,this is us cast,cryptopia,this is fine,currency in iceland,cryptocurrency ในไทย,icon swim,currency in england,masternode hosting,blockshow europe 2019,iconnect,cryptotab,blockshow agenda,cryptosporidium,blockshow 2018,cryptocurrency pantip,blockshow twitter,currency trading,cryptokitties,life like,cryptocurrency wallet,ইংলিশ মুভি,inch to cm,cointelegraph ethereum,ইন্টারনেট,blockshow cointelegraph,currency in london,richard gere,richard simmons,blockshow asia 2018 singapore,masternodes 2019,masternode crypto,this is me lyrics,cointelegraph iota,cryptography,richard madden,life is beautiful,masternode cryptocurrency,cryptocurrency,minigolf fouras,cryptocurrency ความหมาย,minigames,currency in france,cointelegraph ingles,currency exchange near me,internet,masternode calculator,cryptojs,currency in spain,cryptocurrency 中文,cointelegraph tessline,life without limits,cryptocurrency exchange,cryptocurrency สรุป,masternode dash,rich rodriguez,india,minigrip,blockshow americas 2018,life status,cryptocurrency trading,minigolf montpellier,blockshow las vegas,minigolf nantes,crypto group,masternodes pro,richard pryor,masternode investing,minigun nerf,currency symbols,life quotes,lifestyle,icon tool box,indian visa,minigolf parc floral,minigun,icollege,icon pass,life is beautiful movie,richmond va,richard harris,masternodes online,minigolf toulouse,richard mille,cryptocurrencies,currency translator,life is strange,iconoclast,currency in croatia,cointelegraph telegram,blockshow americas,this is us,blockshow london,cointelegraph en español,blockshow asia 2017,blockshow asia 2018,indonesia,cointelegraph bakkt,india vs west indies,cryptocurrency market,minigiants.io,mini golf la baule,icon vest,lifebuoy,rich paul,this is 40,icon helmets,masternode monitoring,cryptocompare,cryptography 中文,cryptocurrency news,masternode pool,life hacks,cryptocurrency มีอะไรบ้าง,rich brian,this is how we do it,icon a5,cryptographic,life is beautiful full movie,thisissand,richard sanchez,blockshow europe berlin,richard speck,currency in italy,life movie,internet speed meter,currency exchange international,currency in switzerland,cryptocurrency ที่น่าสนใจ,this is the end,richard ramirez,minigolf annecy,life insurance,this is america,currency exchange,this is us season 4,masternode staking,ইন্টারনেট কি,icon parking,this is fine meme,indian,blockshow berlin 2018,ইন্দোনেশিয়া,crypto hk,this american life,this day in history,iconic,minigolf lavandou,masternode setup,blockshow usa,life ok,masternode shares,crypton,india map,richmond times dispatch,cryptocurrency price,this is it,cryptocurrency mining,cryptocurrency ไทย,masternode stats,indigo,icloud,cointelegraph libra,minigolf,crypto movie,icona avalon,http://internet.org,minigolf paris,currency in china,blockshow singapore 2018,minigolf lyon,rich dad poor dad,currency in costa rica,this girl is on fire,ikonik skin,minigolf vias,masternode vps,cryptocurrency ลงทุน,live cricket,cointelegraph analisis de precios,currency exchange nyc,rich the kid,
Không có nhận xét nào:
Đăng nhận xét