Skip to content

Latest commit

 

History

History
executable file
·
126 lines (99 loc) · 3.92 KB

README.md

File metadata and controls

executable file
·
126 lines (99 loc) · 3.92 KB

nOS

Changelog

WARNING

This version of nOS has only been tested with :

  • Nvidia GPUs (GTX 9XX/10XX)
  • AMD GPUs (RX 4XX/5XX)

Download: https://drive.google.com/open?id=
md5: 8afc3bcbf0f50fd6fb8f482a2c05f2b9

Installation

git clone https://github.com/Nesci28/nOS.git

W.I.P
(optional: nOS rice, needs i3-gaps)
git clone https://github.com/Nesci28/nOS-rice.git

Linux

Don't forget to change the default root and user password if shellinabox is activated !!!

passwd
sudo passwd

Dependancies

nvidia opencl-amd openssh
screen shellinabox nvidia-settings
nodejs npm gnu-netcat
libmicrohttpd curl jq
tmux rxvt-unicode pm2 (npm)

Shellinabox must be running on port: 4200

Arch

official repo

sudo pacman -S nvidia screen nodejs npm libmicrohttpd curl openssh nvidia-settings gnu-netcat rxvt-unicode jq
ln -s llibmicrohttpd.so.12 libmicrohttpd.so.10
sudo npm install -g pm2

aur

cd ~/Downloads
git clone https://aur.archlinux.org/shellinabox-git.git
cd shellinabox-git
lineNumber=$(grep --max-count 1 -Fnw 'make' ~/Downloads/shellinabox-git/PKGBUILD | cut -f1 -d:); sed -n -i "p;${lineNumber}a find . -name \"service.c\" -exec sed -i -e \"s|-oRhostsRSAAuthentication=no||g\" {} \;" ~/Downloads/shellinabox-git/PKGBUILD; sed -n -i "p;$((lineNumber++))a find . -name \"service.c\" -exec sed -i -e \"s|-oRSAAuthentication=no||g\" {} \;" ~/Downloads/shellinabox-git/PKGBUILD


makepkg -Acs
sudo pacman -U *.tar.xz

cd ..
git clone https://aur.archlinux.org/opencl-amd.git
cd opencl-amd
makepkg -Acs
sudo pacman -U opencl*.tar.xz

Windows

W.I.P

Configuration

SystemConfig.json

  • Use the same Coin Name as in CoinsConfig.json
  • Miner is the name of the folder of the wanted Miner, ex: NoncerPro-OpenCL
  • Serial number is used to let the rig know when there is an update coming from the WebApp, don't touch it.

CoinsConfig.json

  • Use the same Coin Name as in SystemConfig.json
  • Serial number is used to let the rig know when there is an update coming from the WebApp, don't touch it.

Overclocks.json

  • While mining, the Fan Controller will adjust the fan speed accordingly for the GPU Temperature to be between the Max Temperature +- 3. If the fan speed reaches the Max FanSpeed value, PowerController will decrease the Powerlimit of the GPU by -5 W.
  • Serial number is used to let the rig know when there is an update coming from the WebApp, don't touch it.

Nvidia

  • If Use HiveOC is set to true, it uses the hiveOS API to find the most popular overclocks and powerlimit values for your GPUs and set it to those. If the hiveOS API returns empty, it then uses the Powerlevel %, Core Clock and Mem Clock as default values.
  • If Use HiveOC is set to false, the Powerlimit % is calculated with this formula :
Formulas for power limit percentage :
Math.round(Number(minWatt) + (maxWatt - minWatt) / 50 * (maxPower - 50))

Exemple :
Gtx 1070 Ti 
minWatt by nvidia-smi = 90 W (50%)
maxWatt by nvidia-smi = 217 W (100%)
Powerlimit % configured = 70
Math.round(Number(90) + (217 - 90) / 50 * (70 - 50)) == 141 W

Usage

start

./start.sh
or
pm2 start --name LaunchPad LaunchPad.js -- init 2>&1 >/dev/null; pm2 logs LaunchPad --raw &
or 
start (if using the full image)

stop

node Launchpad.js stop 
or
stop (if using the full image)

SSH

node SSH.js help

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GNU GPLv3