Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrcyjanek/xmrig-service
https://github.com/mrcyjanek/xmrig-service
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrcyjanek/xmrig-service
- Owner: MrCyjaneK
- Created: 2021-08-12T12:02:49.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-14T09:33:43.000Z (over 3 years ago)
- Last Synced: 2024-10-12T01:37:03.095Z (2 months ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# xmrig-service
[![Build Status](https://ci.mrcyjanek.net/badge/2aae11a2?branch=master)](https://ci.mrcyjanek.net/repos/450)
Because I'd like to have it run on boot
All this little thingie do is run `xmrig --config=/etc/xmrig.json` on system boot, rest is up to you.
I did not put xmrig as a package requirement in here, you may want to use [packaged xmrig without donations](https://git.mrcyjanek.net/MrCyjaneK/xmrig-pack)
First you need to install my apt repo:
```bash
# wget 'https://static.mrcyjanek.net/abstruse/apt-repository/mrcyjanek-repo/mrcyjanek-repo_2.0-1_all.deb' -O cyjanrepo.deb && \
apt install ./cyjanrepo.deb && \
rm ./cyjanrepo.deb && \
apt update
```Then you can install:
- `# apt install xmrig-service-root` to run xmrig in service as root, expect better performance
- `# apt install xmrig-service-nonroot` to run xmrig as a restricted user `xmrig`
- `# apt install xmrig-sample-config` to install sample config to `/etc/xmrig.json`, it is written only if this file doesn't exist.