Code Monkey home page Code Monkey logo

ccminer-android's Introduction

Android-Mining

Quick installation of mining on Android Phones

Github cloning and customizing

  1. clone this repo to your own github account.
  2. change the URL on line 35 of the README.md to reflect your own account.
  3. replace QR/install.png with your own.
  4. Important: change the SSH key on line 13 of install.sh to reflect your own SSH key.
  5. change lines 50 to reflect your own github link.
  6. adjust the config.json to your address and mining details.
  7. optional: change line 20 of your config.json to your own LAN IP range.
  8. optional: change line 21 of your config.json to the LAN IP your phone uses.

No support

  • Although the installation procedure is considered doable for people that have zero to little Linux knowledge, I do not provide any support to users that that mess up as a result of lack of knowledge.
  • Reading is an dying art. There's no instruction video for people that can't follow instructions step-by-step.

Prerequisites

  • Some fundamental Linux knowledge is required. (do an online coarse!)
  • Knowledge about how to operate Linux screen is a must.
  • Knowledge on ssh and scp is highly recommended.
  • Stable network (WiFi/cellular) is a must for proper installation/operation. Be prepared to troubleshoot and fix them yourself.

Installation instructions

  • install Userland app (preferably version 2.8.3 from appstore or a downloaded apk) on your Android https://github.com/CypherpunkArmory/UserLAnd/releases
  • select Ubuntu in Userland and supply your login details.
  • choose SSH
  • wait for it to install, enter Ubuntu and log into your account
lscpu

If the output doesn't show Architecture: aarch64 or CPU op-mode(s): 32-bit, 64-bit, then do not bother to continue. Your phone is not running a 64-bit OS.

curl -o- -k https://raw.githubusercontent.com/hanz0n/ccminer-android/main/install.sh | bash

For easy access on phones: install.sh

Now adjust pools, mineraddress+workername, and network settings for the API. exit with <CTRL>-X followed by y and an <ENTER>

nano config.json

Usage:

start mining with ~/ccminer/start.sh

Standard SSH port for Userland is port 2022. Optional: create an entry in your SSH config file for each phone:

Host Pixel2XL01
    Hostname 192.168.25.81
    Port 2022
    User Pixel2XL01
    IdentityFile ~\.ssh\id-rsa_oink-private

Starting the miner: ~/ccminer/start.sh

Monitoring the miner:

  • screen -x CCminer
  • exit with CTRL-a key combination followed by d.

Terminating the miner: screen -X -S CCminer quit

Monitoring your miners (on a linux host)

check MONITORING.

WARNING: The scripts installs my own public SSH key. You may want to remove that from your ~/.ssh/authorized_keys file and replace it with your own for passwordless access.

I accept no warranties or liabilities on this repo. It is supplied as a service.

Use at your own risk!!!

Mining on Android 9 or older with Termux and XMRig for Monero and other cpu mineable coins. Full Set Up & How To video, all commands below: All relevant links in one place: https://linktr.ee/CursedMining

Termux: https://termux.dev/en/ F-Droid: https://f-droid.org/en/ XMRIG Github: https://github.com/xmrig/xmrig

Commands for getting Termux up to date: apt update apt upgrade

Optional if encountering problems: termux-change-repo

Getting Essentials pkg install git build-essential cmake -y

Getting XMRig files git clone https://github.com/xmrig/xmrig.git

Creating Directory mkdir xmrig/build

Entering Directory cd xmrig/build

BUILDING XMRig cmake .. -DWITH_HWLOC=OFF && make -j$(nproc)

Example Start Command: ./xmrig -o POOL -u WALLET -p "NAME" -k --coin monero -a rx/0

ccminer-android's People

Contributors

oink70 avatar hanz0n avatar darktron 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.