How to setup bitcoin lightning maninnet network node?
I do not have any software knowledge. I just customized the terms and did it. I made it as you can in the form of copy paste.(my english middle level and mostly google. installation is not difficult. just follow the commands)
~ system properties ~
ubuntu 17.10
220gb or 400gb harddisk
Select the average value of the CPU and ram.
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -
To write sudo and not get root permission continuously;
start with sudo -s command
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -
1- sudo apt-get update
2- wget -qO- https://get.docker.com/ | sh
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
1- git clone https://github.com/dougvk/lightning-node.git
2- cd lightning-node
3- docker build . -t dougvk/bitcoind
4- mkdir -p /scratch/bitcoin/mainnet/bitcoind
5- docker run — name bitcoind_mainnet -d -v /scratch/bitcoin/mainnet/bitcoind:/data -p 8333:8333 -p 9735:9735 dougvk/bitcoind:latest
we will wait at least 6 hours and no more than 12 hours, for the blockchain file to be sequential to our server. — I waited three days.
we will look at the following command to see if our blockchain file is download.
1- du -h / scratch
after the command, after the / scratch folder reaches between 169gb and 170gb, do the following operations.
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
1-nano /usr/local/bin/bitcoin-cli
so we now open note with this command and copy-paste
#!/usr/bin/env bash
docker run — rm — network container:bitcoind_mainnet -v /scratch/bitcoin/mainnet/bitcoind:/data dougvk/bitcoind:latest bitcoin-cli “$@”
Press ctrl + x keys. Press “y” key to exit warning.
2- chmod +x /usr/local/bin/bitcoin-cli
3- bitcoin-cli getinfo
after this ccommand will output to you. find “blocks”: 506729, “and compare it with the original block number at https://blockchain.info/blocks.
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
1- mkdir -p /scratch/bitcoin/mainnet/clightning
2- docker run — rm — name lightning — network container:bitcoind_mainnet -v /scratch/bitcoin/mainnet/bitcoind:/root/.bitcoin -v /scratch/bitcoin/mainnet/clightning:/root/.lightning — entrypoint /usr/bin/lightningd cdecker/lightningd:master — network=bitcoin — rgb=0066cc — alias=NAME — ipaddr=SERVERIPADRESS — log-level=debug
do not paste it like this command.
‘’ — alias = NAME — ipaddr = SERVERIPADRESS ‘’.
type the name you want to name and the IP address of the server
something will fill up.Don’t shut it down. Open another ssh page.
3- nano /usr/local/bin/lightning-cli
so we now open note with this command and copy-paste
#!/usr/bin/env bash
docker run — rm -v /scratch/bitcoin/mainnet/clightning:/root/.lightning — entrypoint /usr/bin/lightning-cli cdecker/lightningd:master “$@”
Press ctrl + x keys. Press “y” key to exit warning.
4- chmod +x /usr/local/bin/lightning-cli
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
now you need to create a wallet address and send at least 0.003–4 btc to your wallet. Please do not forget to send very little BTC to the lightning network filled with bugs.
1- lightning-cli newaddr
this is your wallet address.
2- lightning-cli listfunds
Look at this command whether it has come to your wallet or not.
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
now you will join the lightning network.You have to open the payment channel to join.Everybody has to.You need to send 0.0002 btc to the network.
1- lightning-cli connect 028ffea132e7e1d8e5191f7f4dfaa6b5c20509a6c668111b62c21670ce53139560 35.192.45.155:9735
2- lightning-cli fundchannel 028ffea132e7e1d8e5191f7f4dfaa6b5c20509a6c668111b62c21670ce53139560 35.192.45.155:9735 200000
3- lightning-cli listpeers
After you enter this command, you should expect to see the output CHANNELD_NORMAL.
after https://lnmainnet.gaben.win find yourself on this site by typing in ‘’ — alias = NAME …. ‘’ or typing the ip address.
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
commands that can help
If the server was shut down while it was in the sec- ond time, this command will re-start the serialization- sudo docker bitcoind_mainnet
If you give a permission error. Root does not give your permission or you will do it by typing ‘sudo’ per command and you will get the easy one with ‘sudo -s’.
you can comment if you have any problems.
helpful resources
https://github.com/ElementsProject/
https://interfect.github.io/#!/posts/009-Ride-the-Lightning.md
https://medium.com/@bhdr/kendi-lightning-nodeumuzu-kuralım-958945f7900c
https://medium.com/@dougvk/run-your-own-mainnet-lightning-node-2d2eab628a8b
Congratulations @kimsekim! You received a personal award!
Click here to view your Board
Congratulations @kimsekim! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!