Git Product home page Git Product logo

adb-verus-install's Introduction

adb-verus-install

Table of contents

❓What's this for?🔗

  • Running a verus miner in mobile phone ( used for Luckpool.net for now )
  • Seemless and smoooth miner installation
  • Designed for multiple and continuous phone mining setup

🙈Who can use this?🔗

  • Anyone with spare android mobile phone to play with and nothing to lose - see the requirements
  • Anyone who wants to
    • explore and try verus phone mining
    • maximize the hash power of their phone miner
    • build phone mining hub without the hassle of repetitive and tedious setup

📋Requirements🔗

  • 🔑Verus public key/address
  • 💻Computer
  • Stable internet connection
  • ADB Installation
  • Git and git-bash (other terminals can be used as well)
  • 📱Android phone
    • version: Android 7.x+ to 10.x ( 11.x might have some issues for some brands )
    • architecture: 64 bit
    • processor: octa-core (can also be run in quad-core for some brands)
  • USB data cable

📌NOTE: ADB installation does not require android studio. Just download it then set the ADB path in the environment variable to access it globally. This script is mostly tested in android one, hauwei, samsung, sharp and fujitsu phones. In theory, all android phones that satisfy the above conditions should work.

⚙️Setting🔗

PC and SCRIPT setup should be done once. It might take a while at first but once set, next setup should take less than 10 minutes.

[ 📱 Phone ]🔗

  1. Enable developer mode in the target device
  2. Enable USB Debugging
    • usb debugging
    • This is the minimun setting but other phone brand might require additional setting to allow the communication with ADB.
  3. Connect the phone to your PC with the data cable.
  4. In the first run, a message will popup asking to Allow USB Debugging?.
    • Check Always allow from this computer so popup won't require confirmation the next time you connect.
    • Click OK
    • allow debugging message

📌NOTE: If you plan to use your phone solely for mining, uninstall and disable unnecessary apps and services to maximize your resources.

[ 💻 PC ]🔗

  1. Open git-bash terminal
  2. Check ADB installation.
    adb --help
    • It should give version and other details
    • adb connection
  3. Check the device connection.
    adb devices
    • When phone is properly set, it should appear from the List of devices attached
    • The left side is the device ID. 📌Take note.
    • adb connection

[ 💲 Script ]🔗

  1. Clone this repository
    git clone [email protected]:pangz-lab/adb-verus-install.git
  2. Go to the scripts folder
    cd [download_directory]\adb-verus-install\scripts\
  3. Open \config\default.sh - this is the default configuration file
  4. Update the configuration with the following keys
    • MINER_PUB_KEY : Verus public key/address
    • MINER_PREFIX : miner prefix name. Any alphanumeric character.
    • MINER_STRAT : mining pool server. This is optional. You can leave it for now.
  5. Download the resource files from following links(Default Apps and Environment) and extract the content in each specific folder.
    • Default Apps
      • TARGET PATH : \scripts\APKs\default\
      • i.e. \scripts\APKs\default\appname.apk - appname is the extracted app
      • These files are app apks that can be installed automatically during the setup. termux and termux-api are included by default.
      • This is configured in default.sh under APK_COLLECTION.
      • If you need to include other app, put the apk in the same folder and add the name in APK_COLLECTION array.
      • environment
    • Environment
      • TARGET PATH : \scripts\data\termux\
      • i.e. \scripts\data\termux\termbk.tar.gz - Linux OS image. No need to extract.
      • environment

⛔️ Don't use public address from any trading platform. Not your keys, not your coins

👨‍💻Miner Installation🔗

  1. Open git-bash terminal
  2. Go to the scripts folder
    cd [download_directory]\adb-verus-install\scripts\
  3. Run the following command to show the required parameters
    ./setup.sh
    • Should appear like ./setup.sh <serial no.> <miner name> <mode> <thread>
    • serial no. : device serial number
    • miner name : any alphanumeric value, no space. This will be appended in the miner prefix from the configuration
    • mode : either 'x' or 'HYBRID' - see luckpool setting
    • thread : number of processor to use
  4. Make sure the device is connected
  5. Get the device serial no.
  6. Run the following command to start the installation. Don't disconnect or move your phone to avoid interruption.
    # i.e. 
    # The parameter varies per phone especially the device serial no.
    ./setup.sh STP0219425010219 H1M1 HYBRID 8
    • Wait for the the installation to complete.
    • The device can be disconnected after the installation.
    • adb connection
  7. Open the termux app from your phone.
  8. Follow the instruction showing in the terminal starting from [ Open Termux ] section.
    • The command pkg install termux-api might not be completed for some installation. Just proceed to the next step.
    • adb connection
    • Termux will automatically close at some point, you need to reopen it.
  9. To check, change the [YOUR_PUBLIC_ADDRESS]
  10. Open https://luckpool.net/verus/miner.html?[YOUR_PUBLIC_ADDRESS]
  • done

⚠️Disclaimer🔗

This script is intended for educational purpose only. Anyone who uses this or wish to use shall be held liable and fully responsible for any damage or loss in any way involving the usage of these scripts.

adb-verus-install's People

Contributors

pangz-lab 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.