# Install Sl0ptiminer on Linux

Source: https://sl0ptiminer.com/guides/linux/

**Current version 1.0.2**, released 2026-12-04. [What changed](https://sl0ptiminer.com/releases/#v1-0-2)

One command installs Sl0ptiminer on Linux, on a 64-bit x86 or a 64-bit ARM processor:

```
curl -fsSL https://sl0ptiminer.com/install.sh | sh
```

## What 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 -u
  ```

  Or a 64-bit ARM CPU: `uname -m` prints `aarch64`.
- A wallet address for the coin you mine. The [algorithm's page](https://sl0ptiminer.com/algorithms/) shows its form.
- The stratum address of a pool for that coin, as `host:port`. A plain port and a [TLS port](https://sl0ptiminer.com/wiki/pools/#tls) 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](https://sl0ptiminer.com/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](https://sl0ptiminer.com/install.sh) before you run it. When it stops, its last line says why: [what each line means](https://sl0ptiminer.com/wiki/install-messages/).

**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 -- --back
```

Then 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.

1. **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.minisig
   ```

   On 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.gz
   ```

   Use the file name of your package in step 3 too.

2. **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 SHA256SUMS
   ```

3. **Unpack.**

   ```
   tar -xzf sloptiminer-1.0.2-linux-x86_64-gnu.tar.gz
   ```

   Keep the unpacked folder whole. The miner needs the files next to it, so do not copy the program out alone.

4. **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.rig1
   ```

   `ALGORITHM` is the algorithm you mine, for example `hoohash`; [algorithms](https://sl0ptiminer.com/algorithms/) lists them with their address forms.

5. **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](https://sl0ptiminer.com/wiki/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.rig1
```

Press **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.rig1
```

`screen -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 as `screen -U -S sloptiminer`.

### tmux

```
tmux new -s sloptiminer
./sloptiminer mine -a ALGORITHM -o HOST:PORT -u YOUR_ADDRESS.rig1
```

Press **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.rig1
```

### systemd: 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.target
```

Then:

```
sudo systemctl daemon-reload
sudo systemctl enable --now sloptiminer
```

- `--line` prints one status row every 10 seconds instead of the full screen. That suits a log.
- `--state-file` with `RuntimeDirectory` lets you [watch the full screen](#watch) while the service runs. `/run/sloptiminer` exists only while the service runs.
- A crash, or a kill by the system when memory runs out, restarts the miner after 30 seconds.
- `RestartPreventExitStatus=2` stops 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, then `sudo systemctl start sloptiminer`. [Exit codes](https://sl0ptiminer.com/wiki/options/#exit-codes).
- The paths are those of the install command run as the user `miner` with `--dir /opt/sloptiminer`, in a folder that user may write to: `curl -fsSL https://sl0ptiminer.com/install.sh | sh -s -- --dir /opt/sloptiminer`. `current` always 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 `-t` or `--cpu-percent` limits 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.json
  ```

  `q` closes 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. After `systemctl stop` the 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 sloptiminer
```

When 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 sloptiminer
```

Give 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-control
```

Any 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.
- `nohup` before the start command and `&` at its end keeps mining, but there is no screen, the log file `nohup.out` grows without end (0.4 MB a day with `--line`, 1.7 MB without) and only `kill` stops 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.1
```

Without 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
```
