{"id":1079,"date":"2022-09-26T21:22:43","date_gmt":"2022-09-26T21:22:43","guid":{"rendered":"https:\/\/sznetwork.systems\/?p=1079"},"modified":"2025-10-15T13:09:34","modified_gmt":"2025-10-15T11:09:34","slug":"monero-xmr-mining-on-samsung-phone-in-termux","status":"publish","type":"post","link":"https:\/\/sznetwork.systems\/?p=1079","title":{"rendered":"Monero XMR mining on Samsung phone in Termux(Migrated)"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Monero XMR mining on Samsung phone in Termux\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/FCljFGmvR60?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">First i update all packages by command:<br><strong>apt update<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"241\" height=\"61\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot1-1.png\" alt=\"\" class=\"wp-image-1093\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Next upgrade packages:<br><strong>apt upgrade<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"165\" height=\"35\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot2-1.png\" alt=\"\" class=\"wp-image-1094\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Install requested packages:<br><strong>apt install proot wget git<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"243\" height=\"28\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot3.png\" alt=\"\" class=\"wp-image-1095\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Clone Ubuntu for Termux from GitHub:<br><strong>git clone https:\/\/github.com\/MFDGaming\/ubuntu-in-termux.git<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"395\" height=\"42\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Scrennshot4.png\" alt=\"\" class=\"wp-image-1096\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Scrennshot4.png 395w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Scrennshot4-300x32.png 300w\" sizes=\"auto, (max-width: 395px) 100vw, 395px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Go into cloned directory:<br><strong>cd ubuntu-in-termux<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"199\" height=\"22\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot5.png\" alt=\"\" class=\"wp-image-1097\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Make Ubuntu installation script executable:<br><strong>chmod +x ubuntu.sh<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"161\" height=\"20\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot6.png\" alt=\"\" class=\"wp-image-1098\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot6.png 161w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot6-150x20.png 150w\" sizes=\"auto, (max-width: 161px) 100vw, 161px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Run script:<br><strong>.\/ubuntu.sh<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"110\" height=\"19\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot7.png\" alt=\"\" class=\"wp-image-1099\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">After script finish installation, run ubuntu:<br><strong>.\/startubuntu.sh<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"184\" height=\"25\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot8.png\" alt=\"\" class=\"wp-image-1100\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Ubuntu started, update repositories:<br><strong>apt update<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"116\" height=\"17\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot9.png\" alt=\"\" class=\"wp-image-1101\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Then upgrade it:<br><strong>sudo apt upgrade<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"111\" height=\"19\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenschot10.png\" alt=\"\" class=\"wp-image-1102\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Install all requested packages:<br><strong>sudo apt install wget proot git build-essential cmake libuv1-dev libmicrohttps-dev libssl-dev<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"394\" height=\"56\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot11.png\" alt=\"\" class=\"wp-image-1103\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot11.png 394w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot11-300x43.png 300w\" sizes=\"auto, (max-width: 394px) 100vw, 394px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">After packages installed, clone xmrig miner from GitHub:<br><strong>git clone https:\/\/github.com\/xmrig\/xmrig<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"408\" height=\"32\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot12.png\" alt=\"\" class=\"wp-image-1104\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot12.png 408w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot12-300x24.png 300w\" sizes=\"auto, (max-width: 408px) 100vw, 408px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Go into cloned directory:<br><strong>cd xmrig<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"103\" height=\"20\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot13.png\" alt=\"\" class=\"wp-image-1105\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Make directory build:<br><strong>mkdir build<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"138\" height=\"22\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot14.png\" alt=\"\" class=\"wp-image-1106\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Go into created directory:<br><strong>cd build<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"122\" height=\"19\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot15.png\" alt=\"\" class=\"wp-image-1107\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Compile:<br><strong>cmake -DWITH_HWLOC=OFF ..<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"393\" height=\"50\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot16.png\" alt=\"\" class=\"wp-image-1108\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot16.png 393w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot16-300x38.png 300w\" sizes=\"auto, (max-width: 393px) 100vw, 393px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Make:<br><strong>make<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"95\" height=\"29\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot17.png\" alt=\"\" class=\"wp-image-1109\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">After compiling and making finished, run miner:<br><strong>.\/xmrig<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"122\" height=\"38\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot18.png\" alt=\"\" class=\"wp-image-1110\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Miner says that i need config file and stops, exit ubuntu:<br><strong>exit<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"95\" height=\"20\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot19.png\" alt=\"\" class=\"wp-image-1111\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Install in Termux termux-setup-storage package:<br><strong>termux-setup-storage<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"366\" height=\"24\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot20.png\" alt=\"\" class=\"wp-image-1113\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot20.png 366w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot20-300x20.png 300w\" sizes=\"auto, (max-width: 366px) 100vw, 366px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Run Ubuntu one more time:<br><strong>.\/startubuntu.sh<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"166\" height=\"25\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot21-1.png\" alt=\"\" class=\"wp-image-1114\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">I created configuration file on xmrig website <strong>xmrig.com<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"477\" height=\"404\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot22.png\" alt=\"\" class=\"wp-image-1115\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot22.png 477w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot22-300x254.png 300w\" sizes=\"auto, (max-width: 477px) 100vw, 477px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Added pool <strong>minexmr.com<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"380\" height=\"445\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot23.png\" alt=\"\" class=\"wp-image-1116\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot23.png 380w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot23-256x300.png 256w\" sizes=\"auto, (max-width: 380px) 100vw, 380px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Added my wallet, and worker name<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"571\" height=\"635\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot24.png\" alt=\"\" class=\"wp-image-1117\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot24.png 571w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot24-270x300.png 270w\" sizes=\"auto, (max-width: 571px) 100vw, 571px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">In the end of wizard, downloaded config file and stored it on my phone<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"259\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot25-1024x259.png\" alt=\"\" class=\"wp-image-1118\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot25-1024x259.png 1024w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot25-300x76.png 300w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot25-768x194.png 768w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot25.png 1098w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Now running miner again:<br><strong>.\/xmrig<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"122\" height=\"38\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot18-1.png\" alt=\"\" class=\"wp-image-1119\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Miner started and average mining speed is <strong>788 H\/s<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"443\" height=\"465\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot26.png\" alt=\"\" class=\"wp-image-1120\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot26.png 443w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/09\/Screenshot26-286x300.png 286w\" sizes=\"auto, (max-width: 443px) 100vw, 443px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>First i update all packages by command:apt update Next upgrade packages:apt upgrade Install requested packages:apt install proot wget git Clone Ubuntu for Termux from GitHub:git clone https:\/\/github.com\/MFDGaming\/ubuntu-in-termux.git Go into cloned. <a class=\"read-more-link\" href=\"https:\/\/sznetwork.systems\/?p=1079\">read more&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[197],"tags":[239,232,236,228,224,241,223,226,240,225,229,242,227,230,231,235,234,237,233,238],"class_list":["post-1079","post","type-post","status-publish","format-standard","hentry","category-monero","tag-cpu-mining-termux","tag-install-xmrig-on-android","tag-install-xmrig-on-termux","tag-mining-monero-termux","tag-mining-xmr-di-termux","tag-monero-mining-termux","tag-xmr-mining-termux","tag-xmr-mining-termux-android","tag-xmr-mining-termux-api","tag-xmr-mining-termux-apk","tag-xmr-mining-termux-app","tag-xmr-mining-termux-bashrc","tag-xmr-mining-termux-build","tag-xmr-mining-termux-commands","tag-xmr-mining-termux-commands-list","tag-xmr-mining-termux-earnings","tag-xmr-mining-termux-github","tag-xmr-mining-termux-history","tag-xmr-mining-termux-instructions","tag-xmrig-termux"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sznetwork.systems\/index.php?rest_route=\/wp\/v2\/posts\/1079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sznetwork.systems\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sznetwork.systems\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sznetwork.systems\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sznetwork.systems\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1079"}],"version-history":[{"count":16,"href":"https:\/\/sznetwork.systems\/index.php?rest_route=\/wp\/v2\/posts\/1079\/revisions"}],"predecessor-version":[{"id":1969,"href":"https:\/\/sznetwork.systems\/index.php?rest_route=\/wp\/v2\/posts\/1079\/revisions\/1969"}],"wp:attachment":[{"href":"https:\/\/sznetwork.systems\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sznetwork.systems\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sznetwork.systems\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}