-
Notifications
You must be signed in to change notification settings - Fork 487
How to install NBFC on Ubuntu 18.04
Stefan Hirschmann edited this page Mar 8, 2020
·
8 revisions
Currently, installing NBFC on Linux is not straight forward. This example shows you how to build and install NBFC on Ubuntu 18.04.
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
git clone https://github.com/hirschmann/nbfc.git
and run:
sudo mono nuget.exe restore
xbuild /t:Build /p:Configuration=ReleaseLinux NoteBookFanControl.sln
sudo cp -rf nbfc/Linux/bin/Release/ /opt/nbfc/
sudo cp nbfc/Linux/nbfc.service /etc/systemd/system/
sudo cp nbfc/Linux/nbfc-sleep.service /etc/systemd/system/
sudo systemctl enable nbfc --now
You can either let NBFC recommend configs for you:
mono nbfc.exe config --recommend
Or get a list of all the configs and find one by yourself:
mono nbfc.exe config --list
If that doesn't work for some reason, you can instead check the NBFC Configs folder in and choose a file for your laptop:
cd /opt/nbfc/Configs
ls
Go back to /opt/nbfc/
and run:
mono nbfc.exe config --apply 'Your config'
e.g.:
mono nbfc.exe config --apply 'Asus ROG G751JL'
Note that the
nbfc.exe config
command expects the name of an available config, not the path to a file. Looking through theConfig
directory in step 11 is just a way to see the available configs.
mono nbfc.exe status -a