{"id":23969470,"url":"https://github.com/jiab77/termux-xmr-mining","last_synced_at":"2025-10-17T18:43:37.781Z","repository":{"id":231124123,"uuid":"780957509","full_name":"Jiab77/termux-xmr-mining","owner":"Jiab77","description":"Just a simple guide for easily mining XMR with Termux on mobiles.","archived":false,"fork":false,"pushed_at":"2024-04-07T19:16:57.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-07T20:26:14.338Z","etag":null,"topics":["mining","p2pool","termux","xmr","xmrig"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jiab77.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-04-02T13:36:50.000Z","updated_at":"2024-04-07T20:26:22.206Z","dependencies_parsed_at":"2024-04-07T20:26:21.945Z","dependency_job_id":"da319942-262e-401f-98be-0f65bc6ce6b0","html_url":"https://github.com/Jiab77/termux-xmr-mining","commit_stats":null,"previous_names":["jiab77/termux-xmr-mining"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jiab77/termux-xmr-mining","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiab77%2Ftermux-xmr-mining","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiab77%2Ftermux-xmr-mining/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiab77%2Ftermux-xmr-mining/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiab77%2Ftermux-xmr-mining/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jiab77","download_url":"https://codeload.github.com/Jiab77/termux-xmr-mining/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiab77%2Ftermux-xmr-mining/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279398759,"owners_count":26162762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-17T02:00:07.504Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mining","p2pool","termux","xmr","xmrig"],"created_at":"2025-01-07T01:00:53.174Z","updated_at":"2025-10-17T18:43:37.724Z","avatar_url":"https://github.com/Jiab77.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Termux XMR Mining\n\nJust a simple guide for easily mining XMR (Monero) with Termux on mobiles.\n\n## Installation\n\nThe first thing you have to do is to install [Termux](https://github.com/termux/termux-app).\n\nOnce done, run the following commands:\n\n```console\n$ pkg upgrade\n$ pkg install -y git build-essential cmake libuv libzmq libcurl\n```\n\nNext, install [p2pool](https://github.com/SChernykh/p2pool) and [xmrig](https://github.com/xmrig/xmrig).\n\n### Installing p2pool\n\n```console\n$ git clone --recursive https://github.com/SChernykh/p2pool.git\n$ cd p2pool\n$ mkdir build \u0026\u0026 cd build\n$ cmake ..\n$ make -j$(nproc)\n```\n\nOnce the compilation is finished, check if the binary called `p2pool` has been compiled correctly with `./p2pool --help`.\n\n### Installing xmrig\n\n```console\n$ git clone https://github.com/xmrig/xmrig.git\n$ cd xmrig\n$ mkdir build \u0026\u0026 cd build\n$ cmake -DWITH_HWLOC=OFF ..\n$ make -j$(nproc)\n```\n\nOnce the compilation is finished, check if the binary called `xmrig` has been compiled correctly with `./xmrig --help`.\n\n### Installing Termux API\n\nIn order to be able to detect the temperature on mobile devices, you need to install both, mobile app and the Termux package.\n\n* Mobile App\n\nSearch for application named \"Termux:API\" on the Google Play store and install it.\n\n* Termux Package\n\n```console\n$ pkg install -y termux-api\n```\n\nAdditionally, you will also have to install the `jq` package as it is now required by the launcher scripts.\n\n```console\n$ pkg install -y jq\n```\n\nOnce done, run the following command:\n\n```console\n$ termux-battery-status | jq .\n```\n\nIf you see something, then it means that the __Termux API__ has been installed correctly.\n\n\u003e You don't have to grant any permissions to the 'Termux:API' application as no permissions are required to query the device battery status.\n\n## Remote nodes\n\nBy default, the P2Pool launcher script is configured to use remote Monero mining nodes as this project is primilary made for low-end devices.\n\nUse can use this page to select the remote node you want to use:\n\n* https://monero.fail/\n* https://p2pmd.xmrvsbeast.com/p2pool/monero_nodes.html\n\n## Launcher scripts\n\nTo make the prcess even more easier, you can use the following launcher scripts:\n\n* __[start-p2pool.sh](start-p2pool.sh)__\n* __[start-xmrig.sh](start-xmrig.sh)__\n\n### Running launcher scripts\n\nClone this repo to make things easier:\n\n```console\n$ git clone https://github.com/Jiab77/termux-xmr-mining.git\n$ cd termux-xmr-mining\n```\n\nOnce done, run each launcher scripts in a dedicated tab / session by swipping from left to right on mobile devices.\n\n_Add your wallet address in the `start-p2pool.sh` script or it will not run._\n\n* __P2Pool__\n\n```console\n$ ./start-p2pool.sh\n```\n\n\u003e Wait around 5 to 10 minutes for `p2pool` to be fully synced.\n\n* __XMRig__\n\n```console\n$ ./start-xmrig.sh\n```\n\n\u003e You can stop both scripts by using `[Ctrl + C]` in case the mobile device is overheating.\n\n## Check your progress\n\nHave a look at the [pool observer](https://p2pool.observer) and paste the wallet address you are using for mining to see your progression.\n\n\u003e You might also have to look at the [pool mini observer](https://mini.p2pool.observer) instead of the main one if the \"mini\" has been enabled.\n\n## XvB Raffle\n\nThe support for [XvB Raffle](https://xmrvsbeast.com/p2pool) is currently in development and might not be functional yet.\n\nYou will need to [register](https://p2pmd.xmrvsbeast.com/cgi-bin/p2pool_bonus_submit.cgi) to get started.\n\n\u003e Once done, set the `XVB_TOKEN` variable in the config part of the __[start-p2pool.sh](start-p2pool.sh)__ launcher script.\n\nHere is some useful information:\n\n__Nodes__\n\n* P2P: `p2pmd.xmrvsbeast.com:18081`\n* EU: `eu.xmrvsbeast.com:18089`\n* NA: `na.xmrvsbeast.com:18089`\n\n\u003e These nodes are listed in the following format: `node:rpc`\n\n## APIs\n\nThe support for the several supported APIs will be implemented soon.\n\nHere is some implementation details:\n\n__P2Pool__\n\n* Argument(s): `--local-api`\n* Path: `/local/`\n* Port: `3333`\n\n__XMRig__\n\n* Argument(s): `--http-host`, `--http-port`\n* Port: `18088`\n\n__XvB__\n\n* Public: `https://xmrvsbeast.com/p2pool/stats`\n* Private: `https://xmrvsbeast.com/cgi-bin/p2pool_bonus_history_api.cgi?address=WALLET_ADDRESS\u0026token=TOKEN`\n\n## Tor\n\nThe support for Tor will be implemented soon.\n\nHere is some implementation details:\n\n__P2Pool__\n\n* Argument: `--socks5`\n* Value: `IP:PORT`\n\n__XMRig__\n\n* Argument: `--proxy`\n* Value: `IP:PORT`\n\n## Thanks\n\nThanks to [gupax](https://github.com/hinto-janai/gupax) and [gupaxx](https://github.com/Cyrix126/gupaxx) devs for the inspiration.\n\n## Roadmap\n\n* [X] Create launcher scripts\n* [X] Add device memory detection code\n* [X] Add OpenCL support for Intel and Nvidia\n* [ ] Add [XvB Raffle](https://p2pmd.xmrvsbeast.com/p2pool) support (_pending_)\n* [ ] Add API support for P2Pool, XMrig and XvB\n* [ ] Add Tor support\n* [ ] Add [iSH](https://github.com/ish-app/ish) support\n* [ ] Create installer scripts\n* [ ] Improve OpenCL code\n* [ ] Improve documentation\n\n## References\n\n* https://p2pool.io\n* https://p2pool.io/mini\n* https://p2pmd.xmrvsbeast.com/p2pool\n* https://github.com/SChernykh/p2pool\n* https://github.com/xmrig/xmrig\n\n## Author\n\n* __Jiab77__\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiab77%2Ftermux-xmr-mining","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiab77%2Ftermux-xmr-mining","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiab77%2Ftermux-xmr-mining/lists"}