Code Monkey home page Code Monkey logo

terramaster-fancontrol's Introduction

Fan control for TerraMaster on Linux

Tested with F4-220. This a direct port of the Xpenology fancontrol script by Eudean to work on OMV/Debian.

Original author: https://xpenology.com/forum/topic/14007-terramaster-f4-220-fan-control/?ct=1559481439

Installation:

  1. Clone the repo git clone https://github.com/ahmedmagdiosman/terramaster-fancontrol.git

  2. Build with GCC. I'm using the docker image for ease of use.

    • Pull the image:

docker pull gcc

  • Compile fancontrol.cpp (you must be in the same directory)

docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp gcc gcc -o fancontrol fancontrol.cpp

  1. Create a directory containing all the drives. I created a directory in /opt/disks/ and just empty files inside (as root):
mkdir /opt/disks
cd /opt/disks
touch sda sdb sdc

This far from perfect and if you're a Linux wizard you probably can do something better with regex, e.g. /dev/sd*[a-z]

  1. Run the compiled program (command descriptions in the author's thread).

sudo ./fancontrol 1 40

This will run it in debug mode (1) with temperature setpoint= 40c. Make sure run with fancontrol with sudo.

  1. Alternatively you can use the included systemd service. Copy it to /etc/systemd/system. Also, copy the binary to /usr/local/bin/fancontrol.
sudo systemctl start fancontrol.service
sudo systemctl enable fancontrol.service

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.