GithubHelp home page GithubHelp logo

vsnation / beampay Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 2.0 12 KB

Beampay is a payment processor that allows for easy integration with your online store to automatically manage all your transactions. Beampay is already integrated and on display at store.beamprivacy.community.

Home Page: https://store.beamprivacy.community

Python 100.00%
beam payment mimblewimble beamprivacy beampay

beampay's Introduction

BeamPay | Manual to deploy

Buy Cloud server for 3โ‚ฌ on https://www.hetzner.com/cloud

Mongodb Installation Guide

Ubuntu: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -

echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list

sudo apt-get update

sudo apt-get install -y mongodb-org

sudo service mongod start

sudo service mongod status

Install Beam Node, Wallet, API

Create Directory

mkdir beam-wallet

cd beam-wallet

Install Beam Node

Get last version of the beam-wallet here

wget -c https://github.com/BeamMW/beam/releases/download/beam-3.1.5765/linux-beam-node-3.1.5765.tar.gz -O - | tar -xz

Add --horizon_hi=1440 at the end of beam-node.cfg.

Run the node

./beam-node

Install CLI Beam wallet

Get last version of the beam-wallet here

wget -c https://github.com/BeamMW/beam/releases/download/beam-3.1.5765/linux-beam-wallet-cli-3.1.5765.tar.gz -O - | tar -xz

To create wallet use: ./beam-wallet init Keep in safe seed

To restore wallet use: ./beam-wallet restore --seed_phrase=<semicolon separated list of 12 seed phrase words>;

For more information read here

Install Beam Wallet API

Get last version of the beam-wallet here

wget -c https://github.com/BeamMW/beam/releases/download/beam-3.1.5765/linux-wallet-api-3.1.5765.tar.gz -O - | tar -xz

Specify use_http=1 in the wallet-api.cfg

To start wallet_api use: ./wallet-api

For more information read here

Install Python

Please, install Python using the link below

Ubuntu: https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-programming-environment-on-ubuntu-18-04-quickstart

sudo apt update

sudo apt -y upgrade

sudo apt install software-properties-common build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget python3-dev python3-setuptools

sudo apt install -y python3-pip

cd /root/BeamPay; pip3 install -r requirements.txt

Create Init script

cd /etc/systemd/system

nano beampay.service

Insert text below into beampay.service file.

[Unit]
Description=beampay
After=network.target
After=mongodb.service


[Service]
Type=simple
WorkingDirectory=/root/BeamPay
ExecStart=/usr/bin/python3 beampay.py
RestartSec=10
SyslogIdentifier=beampay
TimeoutStopSec=120
TimeoutStartSec=2
StartLimitInterval=120
StartLimitBurst=5
KillMode=mixed
Restart=always
PrivateTmp=true


[Install]
WantedBy=multi-user.target

systemctl daemon-reload

systemctl enable beampay.service

systemctl start beampay.service

Security

We need to disable ssh connection using the password.

Open the terminal on your PC(only this PC will have access to the server) and enter below command to get your public key.

cat .ssh/id_rsa.pub

Please, copy the result and paste it into the .ssh/authorized_keys on the server

nano .ssh/authorized_keys

Paste it using Ctrl + V

Open a new tab in the PC terminal and check that you can connect to your server without asking the password

ssh root@IP

If all is okay, you need to open sshd_config to disable password auth

sudo nano /etc/ssh/sshd_config

Find string with the name "PasswordAuthentication Yes" and change it to No. Make sure that only one note exists. There are cases when one of the notes is commented using "#" and other located at the end of file

PasswordAuthentication No

Done! Manual created by @vsnation

Donate Address

Beam: 203ae2ac20c67c67e035e580284c472156356e783c33af4c74a87ab84169d433b01 Donate address

BTC: 3QVqpztjTXrfDCDaQiaVanHyjW6yGsWTRd

beampay's People

Contributors

vsnation avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.