-
Notifications
You must be signed in to change notification settings - Fork 488
How to install NBFC on Ubuntu 18.04
Demetrio92 edited this page Mar 14, 2021
·
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
sudo apt install mono-complete
git clone https://github.com/hirschmann/nbfc.git
# use latest stable version
cd nbfc
git pull origin stable
git checkout origin/stable
and run:
sudo mono nuget.exe restore
xbuild /t:Build /p:Configuration=ReleaseLinux NoteBookFanControl.sln
sudo cp -rf Linux/bin/Release/ /opt/nbfc/
sudo cp Linux/nbfc.service /etc/systemd/system/
sudo cp Linux/nbfc-sleep.service /etc/systemd/system/
sudo systemctl enable nbfc --now
You can either let NBFC recommend configs for you:
mono /opt/nbfc/nbfc.exe config --recommend
Or get a list of all the configs and find one by yourself:
mono /opt/nbfc/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:
sudo mono /opt/nbfc/nbfc.exe config --apply 'Your config'
e.g.:
sudo mono /opt/nbfc/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.
If you get a "Could not acquire EC lock" error, try disabling secure boot in the bios.
mono /opt/nbfc/nbfc.exe status -a