Skip to content

๐Ÿค– SDNautocomp for Linux, WSL, Android

SiemdeNijs edited this page Apr 22, 2022 · 2 revisions

๐Ÿค– SDNautocomp: compile the official miner automatically [Linux/WSL/Android]

The bash script is usable on native Linux systems, compatible with WSL & also tested on Android phones with UserLAnd (debian). It will try to automatically install the dependencies needed to compile the miner, grab the source & tries to compile it on your own machine with your chosen flags, then help you place the miner in "~/", and ask you if you want the minepkt.sh script to easily run the miner.

โ„น๏ธ๐Ÿ”ง to get started, make sure you have "wget", if you don't: install it with the following command

apt install wget

Tip: it might vary based on your distro, apt-get , apt, pacman, etc. DYOR if it doesn't work or result to curl


wget -O ~/sdnautocomp.sh https://github.com/SiemdeNijs/packetcrypt_rs_SNcomp/releases/download/release/sdnautocomp.sh && sudo chmod +x ~/sdnautocomp.sh && ~/sdnautocomp.sh 

โ„น๏ธ A good order to try: clang with jemalloc, if it fails, try clang without jemalloc, if the script fails to compile with clang, please try without clang (normal) with jemalloc. If that fails, please try the normal version. Please seek contact if all of the above fails.


Why would you want to self-compile ?

As mentioned before (https://denijs.xyz/pkt-how-to-install-wsl-compile-miner) self-compiling can drastically improve performance. Each system is different and generic packages made to be 'compatible/portable' for most systems won't preform as well as a package specifically crafted for & on your own system.

Again, these instructions differ from what I'm doing with SNcomp: I'm personally editing the source & compile it with a very different method. This script is solely offered so you can measure performance on pre-compiled official vs my SNcomp vs self compiled version. In pretty much all cases, I'd still recommend using SNcomp at this moment.

Clone this wiki locally