-
Notifications
You must be signed in to change notification settings - Fork 0
👾 Linux systemd service, optionally with tmux
If you wish to run the PKT miner (whether original, self-compiled, or SNcomp) on Linux, you can use these systemd services and pre-filled scripts run run the miner on boot one the network is active. If you wish, you can use tmux to run the miner and attach it to a screen (option 2). This would allow you to 'attach' to the screen, as if you were running the miner in your current terminal.
ℹ️🔧 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 /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.
Use the following command on Debian/Ubuntu, etc, to get the full path
readlink -e ~/minepkt.sh
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
Done. See commands below.
Enable/Disable service
systemctl enable pkt
ℹ️ otherwise: 'systemctl disable pkt'
Stop the miner
systemctl stop pkt
Start the miner
systemctl start pkt
Status of the miner
systemctl status pkt
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.
Use the following command on Debian/Ubuntu, etc, to get the full path
readlink -e ~/minepkt.sh
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
Done. See commands below.
Enable/Disable service
systemctl enable pkt
ℹ️ otherwise: '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]
For general information, which goes beyond 'SNcomp', please refer to the official docs, or packetcrypt_rs repo. I'm not affiliated with the team, this ain't for a network steward proposal, not paid. This is all voluntarily, out of love for the PKT community & the project. Please thus respect that I'm not the 24/7 tech-support.
📬Contact, questions, ideas, custom builds, general geeky-convos welcome:
Siem🌻#4926 on the PKT Cash Discord: https://discord.gg/nPmBHFKWV2 or https://deNijs.xyz/
Trade $PKT on Bittrex (click here) or BitMart (click here)
Instructions for using pre-compiled packages
- 🪟 SNcomp pre compiled for Windows
- 🐧 SNcomp pre compiled for Linux/WSL
- 📱 SNcomp for Android, UserLAnd
- 🐋 SNComp for docker, Linuxamd64
- 🌐 SNComp deployment for Akash
🤖 SDNautocomp: compile the official miner automatically
One-click mine, deploying miner and config, linux (termux) services
- 👾 One click run for Windows, or WSL
- 👾 Linux systemd service, optionally with tmux
- 👾 One click run for Android
- 👾 One command install, deploy & mine for Linux Android WSL
Extra's
- 🔧🚀 Set-up WSL for better performance on Windows
- 🔧 Log miner output to file for Linux, WSL, Android
- 🔧 Hide miner output except for mining rates for Linux, WSL, Android
Links to explorer, exchanges, docs, pools by category
FAQ list