Skip to content

Custom version of the packetcrypt ann miner, by Siem de Nijs.

Notifications You must be signed in to change notification settings

tomas347/packetcrypt_rs_SNcomp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

$PKT Will now be trading on Bittrex Global. If you wish to register, it'd be kind if you use this link, thanks.

🌻⛏️👾 SNcomp packetcrypt miner

These packetcrypt miners are pre-compiled by Siem, with custom flags and tinkering.

Use at your own risk. No warranty. Expect no support, but I do try my best to offer help on Discord, PKT.Chat & Reddit.

  • include jemalloc flag for supported devices

  • upward to ~100 % performance gains vs packetcrypt_rs pre-compiled miners

  • different compiling workflow to achieve a more stable experience (hopefully)

  • will be tinkered with in future releases for more custom optimizations

  • Highest increasements seen by EPYC, 5950x, Intel E-series users reported via Discord/PKT Chat

  • Your milegae may vary. But, every penny counts

  • The official repo can be found here: https://github.com/cjdelisle/packetcrypt_rs

🚀 Wish to install WSL for the best performance on a Windows host ?

The most convential way is described in detail here for Windows 10 & 11:

https://denijs.photography/pkt-how-to-install-wsl-compile-miner

Please ignore the instructions on how to compile the miner if you use my custom package/auto-comp provided here on GitHub.

The instructions on how to self-compile it above are different from what I'm doing with SNcomp:

I'm personally editing the source & compile it with a very different method.

⛏️ Usage:

1 Rename the file to "packetcrypt".

2 Use the miner commands as usual:

Linux

/path/to/packetcrypt ann -p pkt1qc4l3wgtkx3t4qez6pun5k73cktcdczkqqutwnj http://pool.pkt.world http://pool.k1m3r4.com http://pool.pktpool.io http://pool.pkteer.com http://pktco.in

Windows

/path/to/packetcrypt.exe ann -p pkt1qc4l3wgtkx3t4qez6pun5k73cktcdczkqqutwnj http://pool.pkt.world http://pool.k1m3r4.com http://pool.pktpool.io http://pool.pkteer.com http://pktco.in

NEW Akash Network with SNComp docker image: copy deploy.yml & edit your address, uses the latest available SNcomp

https://github.com/SiemdeNijs/packetcrypt_rs_SNcomp/blob/main/deploy.yml

⚠️Replace the address with your address⚠️

👾 Optional one click run for Windows, WSL or Linux native systemd (tmux) service available too

🪟 Windows native (running .exe directly on windows machine):

1 Open notepad

2 Copy this:

"/path/to/packetcrypt.exe ann -p pkt1qc4l3wgtkx3t4qez6pun5k73cktcdczkqqutwnj http://pool.pkt.world http://pool.k1m3r4.com http://pool.pktpool.io http://pool.pkteer.com http://pktco.in

3: Change the /path/to, to the actual path. Change it to your address. Optionally add "-t number" to limit the threads used.

4: Click "Save as", and select "all files" instead of the ".txt" extension. As a name, name it "whatever" but be sure to end it with ".cmd".

5: if successfully saved, you can now double click the icon to run your miner.

🪟🐧 Windows WSL:

1 Open notepad

2 Copy this:

wsl /path/to/packetcrypt ann -p pkt1qc4l3wgtkx3t4qez6pun5k73cktcdczkqqutwnj http://pool.pkt.world http://pool.k1m3r4.com http://pool.pktpool.io http://pool.pkteer.com http://pktco.in

3: Change the /path/to, to the actual path. Change it to your address. Optionally add "-t number" to limit the threads used.

4: Click "Save as", and select "all files" instead of the ".txt" extension. As a name, name it "whatever" but be sure to end it with ".cmd".

5: if successfully saved, you can now double click the icon to run your miner.

🐧 Linux native, option one: systemd (if unsure pick systemd option 1)

wget -O /etc/systemd/system/pkt.service https://github.com/SiemdeNijs/packetcrypt_rs_SNcomp/releases/download/release/pkt.service
wget -O ~/packetcrypt https://github.com/SiemdeNijs/packetcrypt_rs_SNcomp/releases/download/release/packetcrypt_x8664_linux && sudo chmod +x ~/packetcrypt
wget -O ~/minepkt.sh https://github.com/SiemdeNijs/packetcrypt_rs_SNcomp/releases/download/release/minepkt.sh && sudo chmod +x ~/minepkt.sh

sudo nano ~/minepkt.sh ⚠️ edit to your personal pkt address ! ⚠️ Optionally add "-t number" to limit the threads used.

Hit CTRL + X To exit, "Y" to save when prompted.

sudo nano /etc/systemd/system/pkt.service ⚠️ edit ~/minepkt.sh path to your path ! For example /root/minepkt.sh ! ⚠️.

Hit CTRL + X To exit, "Y" to save when prompted.

sudo systemctl enable pkt ⚠️only if you want to autorun it on boot, else ignore this command⚠️

Done. See commands below.

Run the above commands in order to get the the linux miner, bash file "minepkt.sh" , & "pkt.service".

Enable/Disable autorun: "systemctl enable pkt"

or "systemctl disable pkt"

Stop the miner: "systemctl stop pkt"

Start the miner: "systemctl start pkt"

Status of the miner: "systemctl status pkt"

🐧 Linux native, option two: systemd with tmux (if unsure pick systemd option 1)

wget -O /etc/systemd/system/pkt.service https://github.com/SiemdeNijs/packetcrypt_rs_SNcomp/releases/download/release/pkttmux.service
wget -O ~/packetcrypt https://github.com/SiemdeNijs/packetcrypt_rs_SNcomp/releases/download/release/packetcrypt_x8664_linux && sudo chmod +x ~/packetcrypt
wget -O ~/minepkt.sh https://github.com/SiemdeNijs/packetcrypt_rs_SNcomp/releases/download/release/minepkt.sh && sudo chmod +x ~/minepkt.sh
wget -O ~/pkttmuxmine.sh https://github.com/SiemdeNijs/packetcrypt_rs_SNcomp/releases/download/release/pkttmuxmine.sh && sudo chmod +x ~/pkttmuxmine.sh

sudo nano ~/minepkt.sh ⚠️ edit to your personal pkt address ! ⚠️ Optionally add "-t number" to limit the threads used

Hit CTRL + X To exit, "Y" to save when prompted.

sudo nano /etc/systemd/system/pkt.service ⚠️ edit ~/pkttmuxmine.sh path to your path ! For example /root/pkttmuxmine.sh ! ⚠️.

Hit CTRL + X To exit, "Y" to save when prompted.

sudo systemctl enable pkt ⚠️only if you want to autorun it on boot, else ignore this command⚠️

Done. See commands below.

Run the above commands in order to get the the linux miner, bash file "minepkt.sh" & "pkttmuxmine.sh", & "pkt.service".

Enable/Disable autorun: "systemctl enable pkt"

or "systemctl disable pkt"

Stop the miner: "systemctl stop pkt"

Start the miner: "systemctl start pkt"

Status of the miner: "systemctl status pkt"

Tmux session is called "miner"

Show miner session:

tmux attach-session -t miner

Detatch from session with ctrl + shift + b, then release and hit "d" to detatch.

[or find the corresponding tmux commands for your system]

🐧 Android phone UserLAnd mining, debian aarch64/armu package

Fist install UserLAnd app [https://play.google.com/store/apps/details?id=tech.ula], setup the debian distro. Look up how to "unrestrict battery usage" & "unrestrict data usage" in your phone settings (often under settings -> Apps -> UserLAnd), also make sure the app has all the correct permissions. Run sudo apt update & sudo apt upgrade upon first usage. In the notification from UserLAnd, be sure to enable "acquire wakelock".

STEP 0

sudo apt install wget && sudo apt install tmux && sudo apt install nano

step 1A: if the command "dpkg --print-architecture" shows arm64 use this package

wget -O ~/packetcrypt https://github.com/SiemdeNijs/packetcrypt_rs_SNcomp/releases/download/release/packetcrypt_aarch64_linux && chmod +x ~/packetcrypt

step 1B: if the command "dpkg --print-architecture" shows armhf use this package

wget -O ~/packetcrypt https://github.com/SiemdeNijs/packetcrypt_rs_SNcomp/releases/download/release/packetcrypt_armu_linux && chmod +x ~/packetcrypt

STEP 2: Now continue, after getting the right package

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

STEP 3:

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

STEP 4:

nano ~/minepkt.sh ⚠️ edit to your personal pkt address ! ⚠️

⚠️ ! ON PHONES YOU SHOULD USE THE "-t 8" option and limit threads to about half of your available threads. Edit, and try to find the sweet spot per phone. Performance is otherwise impacted greatly ! ⚠️ STEP 4.5: Hit CTRL + X To exit, "Y" to save when prompted.

Done. See commands below to start mining on your phone.

Run the above commands in order to get the the aarch64 miner, bash file "minepkt.sh" & "pkttmuxmine.sh"

Stop the miner: "tmux attach-session -t miner" and hit CTRL + C

Start the miner: "~/pkttmuxmine.sh"

Tmux session is called "miner"

Show miner session:

tmux attach-session -t miner

Detatch from session with ctrl + shift + b, then release and hit "d" to detatch.

Optionally, connect to your android phone over ssh with port 2022 and your set username/password.

🐋 NEW: Docker, instructions for use without Akash (linux64amd container)

Docker pull:

sudo docker pull sjjn/sncompdocker:sncompv0173

Run the container but pass the following variables in your run command

sudo docker run -e "HTTPS_PROXY=http://username:password@PROXYURLORIP:3128" -e "HTTP_PROXY=http://username:password@PROXYURLORIP:3128" -e WALLET_ADDR="pkt1qc4l3wgtkx3t4qez6pun5k73cktcdczkqqutwnj" -e POOL1="poolurl" -e POOL2="poolurl" -e POOL3="poolurl" -e POOL4="poolurl" -e POOL5="poolurl" -e LOGRATES="1" -e THREADS="10" IMAGEIDHERE

DECLARE THE ENVIROMENTAL VARIABLES BEFORE THE IMAGE TAG/ID OR THEY WILL NOT BE PASSED.

EDIT TO YOUR ADDRESS / THREAD COUNT / POOL ORDER / PROXY, REMOVE PROXY VARS IF UNUSED

🤖 Use my SDNautocomp script if you wish to compile the official miner automatically [Linux/WSL/Android]

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

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.

Why would you want to self-compile ? As mentioned before (https://denijs.photography/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 soley 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.

🔧 Extra's

Log all output to a file, while still censoring output in console to show only rates

2>&1 |&tee -a /var/log/pkt.log | grep --color=never -o "annmine.rs.*Ke.*"

One-in-all Linux command to install dependencies & start mining. Edit minepkt.sh with your address and deploy

Clarification: edit/remove https://github.com/SiemdeNijs/packetcrypt_rs_SNcomp/releases/download/release/minepkt.sh.

Create a copy of the minepkt.sh, edit your address, upload it somewhere & use your url.

sudo apt install wget tmux nano -y && wget -O ~/packetcrypt https://github.com/SiemdeNijs/packetcrypt_rs_SNcomp/releases/download/release/packetcrypt_x8664_linux && chmod +x ~/packetcrypt && wget -O ~/minepkt.sh https://github.com/SiemdeNijs/packetcrypt_rs_SNcomp/releases/download/release/minepkt.sh && chmod +x ~/minepkt.sh && wget -O ~/pkttmuxmine.sh https://github.com/SiemdeNijs/packetcrypt_rs_SNcomp/releases/download/release/pkttmuxmine.sh && chmod +x ~/pkttmuxmine.sh && ~/pkttmuxmine.sh && tmux attach-session -t miner

You should edit /var/log/pkt.log to the desitnation where you want to log, it will append to the file instead of overwriting it each time. Add this to the end of your miner command in Linux/WSL/Android, or edit (sudo nano) ~/minepkt.sh to your likings

Cheers and have fun.

📬Contact, questions, ideas, custom builds, general geeky-convos welcome:

Siem🌻#4926 on the PKT Cash Discord: https://discord.gg/CkNJefwW52

https://deNijs.xyz/

💝If you're feeling especially kind or helped by my efforts to increase the PKT communities yield:

PKT: pkt1qc4l3wgtkx3t4qez6pun5k73cktcdczkqqutwnj

PayPal: https://PayPal.me/SiemdeNijs

Bittrex Refferal link: https://bittrex.com/discover/join?referralCode=T2Y-1DB-5NR

About

Custom version of the packetcrypt ann miner, by Siem de Nijs.

Resources

Stars

Watchers

Forks

Packages

No packages published