Install Sl0ptiminer on Linux
Current version 1.0.2, released 2026-12-04. What changed
One command installs Sl0ptiminer on Linux, on a 64-bit x86 or a 64-bit ARM processor:
curl -fsSL https://sl0ptiminer.com/install.sh | shWhat you need
A 64-bit x86 CPU. Mining on it needs AVX2, FMA and BMI2; without them only the NVIDIA cards mine. This prints three lines when all three are present:
grep -o -w -E 'avx2|fma|bmi2' /proc/cpuinfo | sort -uOr a 64-bit ARM CPU:
uname -mprintsaarch64.- A wallet address for the coin you mine. The algorithm's page shows its form.
- The stratum address of a pool for that coin, as
host:port. A plain port and a TLS port both work.
Before mining
Mining places a sustained load on your equipment. Checks for your setup include the following.
- Check that the circuit can carry the rig's sustained load together with other equipment on it. If its capacity is uncertain, ask the person responsible for the installation or a qualified electrician before mining.
- Use power supplies, cables, plugs and connectors rated for the sustained load. Follow the equipment manufacturers' instructions and replace damaged components before use.
- Use a stable case or frame suited to the equipment. Keep combustible materials clear of hot components and leave cooling paths open.
- Have any changes to fixed wiring made by someone authorised for that work under local law.
- Keep hardware thermal protections enabled. Supervise the rig, including after changing clock or power settings. Section 7 of the licence explains the limits of the miner's processor heat control. The miner provides no heat protection for graphics cards.
- Stop mining if cooling fails, a connector overheats, a breaker trips repeatedly or you notice a burning smell. Have the cause corrected before mining again.
One command
The command at the top of this page checks that the machine can run Sl0ptiminer, picks the package for your processor and system, downloads it, checks it against its checksum, unpacks it into ~/sloptiminer and prints the command that starts mining. It needs no root rights and starts nothing. It also checks the signature, with minisign, OpenSSL 3 or Python 3; on a machine that has none of them the command stops, installs nothing and says how to add one. You can read the script before you run it. When it stops, its last line says why: what each line means.
To update, run the same command again. It checks the new package like the first one. The new version is unpacked next to the one in use, and ~/sloptiminer/current then points to the new one. Restart the miner to use it; its first start measures the CPU again, which takes about two minutes. The version you had before is kept; versions older than that are removed.
To go back to the version you had before:
curl -fsSL https://sl0ptiminer.com/install.sh | sh -s -- --backThen go to step 4 below.
Step by step
The same by hand. The Linux package is one folder with the miner as a single program. Each package is for systems with glibc 2.31 or newer (Ubuntu 20.04, Debian 11, RHEL 9 and newer) and also mines on NVIDIA cards.
Download the package and its checksums.
curl -fLO https://sl0ptiminer.com/dl/1.0.2/sloptiminer-1.0.2-linux-x86_64-gnu.tar.gz curl -fLO https://sl0ptiminer.com/dl/1.0.2/SHA256SUMS curl -fLO https://sl0ptiminer.com/dl/1.0.2/SHA256SUMS.minisigOn a 64-bit ARM machine, the package for ARM instead:
curl -fLO https://sl0ptiminer.com/dl/1.0.2/sloptiminer-1.0.2-linux-aarch64-gnu.tar.gzUse the file name of your package in step 3 too.
Verify. The first command checks who signed the list. The second checks your file against the list.
minisign -Vm SHA256SUMS -P RWQ/WbRNa0qAYKdPxfZD1yo1E0fQ7UDCqHt7BEga1v66ufUi3b8JWVOs sha256sum --ignore-missing -c SHA256SUMSUnpack.
tar -xzf sloptiminer-1.0.2-linux-x86_64-gnu.tar.gzKeep the unpacked folder whole. The miner needs the files next to it, so do not copy the program out alone.
Run from inside the unpacked folder, with the algorithm, your pool and your address. The part after the dot is a worker name you choose.
./sloptiminer mine -a ALGORITHM -o HOST:PORT -u YOUR_ADDRESS.rig1ALGORITHMis the algorithm you mine, for examplehoohash; algorithms lists them with their address forms.- Wait for the first start. The miner tests itself and measures the CPU once. This takes about two minutes. Later starts are quick.
Press q to stop. Press m for the menu. Reading the screen explains what you see.
Keep it running
The miner stops when its terminal closes. Three ways to keep it running: screen and tmux keep the full screen and let you come back to it; systemd also starts the miner at boot and restarts it after a crash.
screen
screen -S sloptiminer
./sloptiminer mine -a ALGORITHM -o HOST:PORT -u YOUR_ADDRESS.rig1Press Ctrl-a d to leave the miner running, then close the terminal. Later, screen -ls lists it and screen -r sloptiminer brings the screen back at the size of your window. Press q to stop the miner, then type exit to close screen.
To start it without opening the screen:
screen -dmS sloptiminer ./sloptiminer mine -a ALGORITHM -o HOST:PORT -u YOUR_ADDRESS.rig1screen -r sloptiminer opens it, and q stops the miner there too.
- screen is not on every system. On Debian and Ubuntu:
sudo apt install screen. - If the miner draws its plain ASCII screen because the system locale is not UTF-8 (for example
LANG=C), start screen asscreen -U -S sloptiminer.
tmux
tmux new -s sloptiminer
./sloptiminer mine -a ALGORITHM -o HOST:PORT -u YOUR_ADDRESS.rig1Press Ctrl-b d to leave the miner running. tmux ls lists it and tmux attach -t sloptiminer brings it back. Press q to stop the miner, then type exit to close tmux.
To start it without opening the screen:
tmux new -d -s sloptiminer ./sloptiminer mine -a ALGORITHM -o HOST:PORT -u YOUR_ADDRESS.rig1systemd: start at boot
Save the unit below as this file:
/etc/systemd/system/sloptiminer.service[Unit]
Description=Sl0ptiminer
After=network-online.target
Wants=network-online.target
[Service]
Type=exec
User=miner
WorkingDirectory=/opt/sloptiminer/current
ExecStart=/opt/sloptiminer/current/sloptiminer mine -a ALGORITHM -o HOST:PORT -u YOUR_ADDRESS.rig1 --line --state-file /run/sloptiminer/state.json
RuntimeDirectory=sloptiminer
Restart=on-failure
RestartSec=30
RestartPreventExitStatus=2
Nice=10
NoNewPrivileges=true
[Install]
WantedBy=multi-user.targetThen:
sudo systemctl daemon-reload
sudo systemctl enable --now sloptiminer--lineprints one status row every 10 seconds instead of the full screen. That suits a log.--state-filewithRuntimeDirectorylets you watch the full screen while the service runs./run/sloptiminerexists only while the service runs.- A crash, or a kill by the system when memory runs out, restarts the miner after 30 seconds.
RestartPreventExitStatus=2stops restarts when the miner reports an install or configuration problem, such as a changed package, a wrong option or a wrong address. A restart with the same files and options will not help: fix the cause, thensudo systemctl start sloptiminer. Exit codes.- The paths are those of the install command run as the user
minerwith--dir /opt/sloptiminer, in a folder that user may write to:curl -fsSL https://sl0ptiminer.com/install.sh | sh -s -- --dir /opt/sloptiminer.currentalways points to the version in use, so the unit does not change when you update. - The first start measures the CPU for about two minutes and remembers the result for the user it ran as. Later starts mine within seconds. The measurement uses all cores, also when
-tor--cpu-percentlimits the miner: the limit applies once mining starts.
Watch the service
The full screen, as any user on the machine:
/opt/sloptiminer/current/sloptiminer ui --feed /run/sloptiminer/state.jsonqcloses the view only. The miner keeps running. When the miner has not written the file for 15 seconds, the pool row reads "no update for", the time and "stopped?": the numbers are old and the miner may have stopped. Aftersystemctl stopthe file is gone and the view says "no record".- The status:
systemctl status sloptiminer. - The log, one row every 10 seconds:
journalctl -u sloptiminer -f.
Stop and restart the service
sudo systemctl stop sloptiminer
sudo systemctl start sloptiminer
sudo systemctl restart sloptiminerWhen it stops, the miner writes its final counts as the last row of the log. sudo systemctl disable --now sloptiminer stops it and keeps it from starting at boot.
Start and stop from another machine
For example from a home automation system that pauses mining when electricity is expensive:
ssh miner-control@RIG sudo systemctl stop sloptiminer
ssh miner-control@RIG sudo systemctl start sloptiminerGive this its own user and its own SSH key, and let that user run only these two commands. On the rig, as root, with the public key in KEY.pub:
useradd --create-home --shell /bin/sh miner-control
install -d -m 700 -o miner-control -g miner-control ~miner-control/.ssh
printf 'restrict %s\n' "$(cat KEY.pub)" > ~miner-control/.ssh/authorized_keys
chown miner-control: ~miner-control/.ssh/authorized_keys
chmod 600 ~miner-control/.ssh/authorized_keys
printf 'miner-control ALL=(root) NOPASSWD: /usr/bin/systemctl stop sloptiminer, /usr/bin/systemctl start sloptiminer\n' > /etc/sudoers.d/sloptiminer-control.tmp
chmod 440 /etc/sudoers.d/sloptiminer-control.tmp
visudo -cf /etc/sudoers.d/sloptiminer-control.tmp && mv /etc/sudoers.d/sloptiminer-control.tmp /etc/sudoers.d/sloptiminer-controlAny other sudo command from that user is refused: a restart, another service, a shell. The key can still run ordinary commands as that user, so give the user nothing else. Each start runs the miner's start-up checks again and is mining within seconds.
What does not work
- The start command with
&at its end, in a terminal. The miner stops at once ("Stopped (tty output)") and is gone when you log out. nohupbefore the start command and&at its end keeps mining, but there is no screen, the log filenohup.outgrows without end (0.4 MB a day with--line, 1.7 MB without) and onlykillstops the miner. Use screen, tmux or systemd instead.
Update and remove
To update, run the install command again as the user that owns the folder, with the same --dir if you used one, then restart the miner: sudo systemctl restart sloptiminer when it runs as a service.
To remove the miner, stop it and delete its folder.
An NVIDIA card on an ARM machine
The ARM package for glibc 2.31 or newer reaches an NVIDIA card through an OpenCL library, which the NVIDIA driver setup brings. This prints a line when the library is there:
ldconfig -p | grep libOpenCL.so.1Without it the miner mines on the processor only, and the installer says so. Once the driver is installed, the miner also mines on the card from its next start. Nothing needs to be installed again.
An update keeps the kind of package you have. The earlier ARM package that mines on the processor only ends with version 0.8.5 and gets no newer versions. On a system with glibc 2.31 or newer, remove the link to the version in use and run the install command again: it installs the current ARM package. The folders of the versions you had stay.
rm ~/sloptiminer/current