GithubHelp home page GithubHelp logo

vcash-scripts's Introduction

Vcash Install / Update Scripts

Warning !

Please backup your existing wallet files (~/.Vcash/data/ folder). I can't be responsible if you broke something.

Req.

GNU/Linux

GCC/G++ >= 4.8.* / git / screen / curl. On low-spec hardware, don't forget to increase the SWAP (min 1024MB) to avoid the 'Virtual memory exhausted: Cannot allocate memory' during the build process.

Debian / Ubuntu / Raspbian

sudo apt-get install build-essential openssl curl git-core screen -y

Raspbian

Be sure to have enough Swap to avoid 'Virtual memory exhausted: Cannot allocate memory'. Raspbian default Swap size is 100mb, please increase the size before building.

Check Swap size:

free -m

Example with 1024mb as Swap size:

sudo nano /etc/dphys-swapfile

Edit the file:

CONF_SWAPSIZE=1024

Save & restart dphys-swapfile:

sudo /etc/init.d/dphys-swapfile stop
sudo /etc/init.d/dphys-swapfile start

Install / Update

As user (fresh ssh login as user, not su switch to user from the root account):

bash < <(curl -s  https://raw.githubusercontent.com/openvcash/vcash-scripts/master/build-linux.sh)

The script will auto launch vcashd at the end. Resume the screen session with:

screen -x vcashd

Ctrl-a Ctrl-d to detach

Launch

Be sure there's no vcashd running before !

ps x | grep '[v]cashd'

To launch:

cd ~/vcash/
screen -d -S vcashd -m ./vcashd

Crontab

As user: Autostart Vcash daemon on reboot with crontab:

crontab -e

Add this entry (edited with your username):

@reboot pgrep vcashd > /dev/null || cd /home/your_username/vcash && screen -d -S vcashd -m ./vcashd

save & check crontab:

crontab -l

Then do a reboot test.

vcash-scripts's People

Contributors

xcoredev avatar sum01 avatar

Watchers

 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.