Linux install guide

FAH provides a V7 client installer for Debian / Mint / Ubuntu / RedHat / CentOS / Fedora. Installation on other distros may or may not be easy but if you can offer help to others, they would appreciate it.

Moderators: Site Moderators, FAHC Science Team

Linux install guide

Postby leggazoid » Thu Nov 23, 2017 4:14 pm

Linux install guide...

Install Xubuntu (or any flavor) 17.10

Code: Select all
sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt full-upgrade
sudo apt install nvidia-387
sudo nvidia-xconfig -a --cool-bits=31 --allow-empty-initial-configuration
wget http://launchpadlibrarian.net/109052632/python-support_1.0.15_all.deb
sudo apt install ./python-support_1.0.15_all.deb
wget https://folding.stanford.edu/releases/public/release/fahclient/debian-testing-64bit/v7.4/fahclient_7.4.4_amd64.deb
sudo apt install ./fahclient_7.4.4_amd64.deb
wget https://folding.stanford.edu/releases/public/release/fahcontrol/debian-testing-64bit/v7.4/fahcontrol_7.4.4-1_all.deb
sudo apt install ./fahcontrol_7.4.4-1_all.deb
wget http://fah-web.stanford.edu/file-releases/public/GPUs.txt
sudo cp GPUs.txt /var/lib/fahclient/
Last edited by leggazoid on Fri Nov 24, 2017 4:04 am, edited 2 times in total.
leggazoid
 
Posts: 11
Joined: Sat Jun 08, 2013 7:42 pm

Re: Linux install guide

Postby leggazoid » Thu Nov 23, 2017 4:41 pm

Not sure if cool-bits=31 still works for overclocking on nvidia-387 drivers?
leggazoid
 
Posts: 11
Joined: Sat Jun 08, 2013 7:42 pm

Re: Linux install guide

Postby reavy » Mon Nov 27, 2017 7:19 pm

Thanks very much for this guide! It's been helpful for me.

I also needed
Code: Select all
sudo apt-get install software-properties-common python-software-properties

to get the apt-add-repository command. For some reason those two packages weren't already installed on my system.
reavy
 
Posts: 7
Joined: Tue Nov 21, 2017 6:54 pm
Location: Phoenix, AZ

Re: Linux install guide

Postby SteveWillis » Mon Nov 27, 2017 7:52 pm

leggazoid wrote:Not sure if cool-bits=31 still works for overclocking on nvidia-387 drivers?


It does.
Image

1080 and 1080TI GPUs on Linux Mint
SteveWillis
 
Posts: 409
Joined: Fri Apr 15, 2016 1:42 am

Re: Linux install guide

Postby leggazoid » Tue Aug 13, 2019 3:24 am

Install Xubuntu (or any flavor) 18.04.3

Code: Select all
sudo apt update
sudo apt full-upgrade
sudo apt install nvidia-430
sudo reboot
wget https://folding.stanford.edu/releases/public/release/fahclient/debian-testing-64bit/v7.4/fahclient_7.5.1_amd64.deb
sudo apt install ./fahclient_7.5.1_amd64.deb
wget https://folding.stanford.edu/releases/public/release/fahcontrol/debian-testing-64bit/v7.4/fahcontrol_7.5.1-1_all.deb
sudo apt install ./fahcontrol_7.5.1-1_all.deb
wget http://fah-web.stanford.edu/file-releases/public/GPUs.txt
sudo cp GPUs.txt /var/lib/fahclient/
sudo systemctl restart FAHClient.service
# (Fan control that works with ssh and you can use over clocking the same way)
sudo nvidia-xconfig -a --cool-bits=31 --allow-empty-initial-configuration
sudo systemctl restart lightdm.service
sudo DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a 'GPUFanControlState=1' -a 'GPUTargetFanSpeed=100'
leggazoid
 
Posts: 11
Joined: Sat Jun 08, 2013 7:42 pm

Re: Linux install guide

Postby toTOW » Tue Aug 13, 2019 3:34 pm

The client will automatically update the GPUs.txt file. If you copy it manually, you run the risk to break permissions on the file and to permanently break auto-update feature.
Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.

FAH-Addict : latest news, tests and reviews about Folding@Home project.

Image
User avatar
toTOW
Site Moderator
 
Posts: 5640
Joined: Sun Dec 02, 2007 11:38 am
Location: Bordeaux, France

Re: Linux install guide

Postby bruce » Tue Aug 13, 2019 3:44 pm

toTOW wrote:The client will automatically update the GPUs.txt file. If you copy it manually, you run the risk to break permissions on the file and to permanently break auto-update feature.


Agreed. FAH configures special permissions for its files.

When FAH is first installed, one of the FIRST things it attempts to do is download GPUs.txt. That must happen before your GPU can be configured, and it may not if the rebooted system doesn't connect to the internet quickly enough so that it's available before FAH's initial startup. FAH should still update it later, so be patient if your GPU doesn't set up immediately.
bruce
 
Posts: 19861
Joined: Thu Nov 29, 2007 11:13 pm
Location: So. Cal.

Re: Linux install guide

Postby Adam_Ford » Wed Aug 14, 2019 5:42 pm

if you change the option from gpu=false to true it should download gpus.txt
Image
Adam_Ford
 
Posts: 18
Joined: Sun Nov 18, 2012 4:09 am

Re: Linux install guide

Postby lazyacevw » Tue Mar 17, 2020 10:02 pm

FWIW, I have Linux Mint 19.3 Tricia with 5.4.7-050407-generic kernel. I was able to get my 3950X up and folding by simply installing fahclient v7.5.1 and terminal/FAHControl. I could not add my GPU however so.....


Here are the minimal steps I have found to get FAH up and running with my GPU without having to install any additional packages. Trying other methods I found messed up Steam and I couldn't play games (thank goodness for Timeshift!) I also hate installing unnecessary packages:

Installing F@H:

Code: Select all

## Download fahclient, fahcontrol, and optionally fahviewer from https://foldingathome.org/start-folding/ and save to your desktop
## Double click on each package, one at a time and have Package Installer install the packages.

sudo nvidia-xconfig --cool-bits=4
sudo gedit /etc/fahclient/config.xml
## Within the config.xml, change the gpu-entry from 'false' to 'true' and save.
sudo wget https://fah-web.stanford.edu/file-releases/public/GPUs.txt -P /var/lib/fahclient
sudo chown fahclient:root /var/lib/fahclient/GPUs.txt
sudo /etc/init.d/FAHClient restart
## Open FAHControl and select <Configure>, <Slots>, <Add>, <GPU>, <OK>, and <Save>.
## Optionally, I added extra slot options for my CPU (client-type, bigadv) and for my GPU (client-type, advanced). Read more about that here: https://foldingathome.org/support/faq/installation-guides/configuration-guide/


The GPU.txt file was not automatically downloaded by fahclient, so that is why I downloaded it in the above steps. Maybe it's because my config.xml had the gpu entry set to false?

If you don't already have nvidia drivers installed, I have included what I can remember from the process. I chose v440. Please correct me if I mis-remembered anything about the nvidia drivers! I had to install gcc-7 and gcc-9 because it turns out, nvidia installation will fail if you are running an upgraded kernel unless you also install the gcc compilers that were used to compile that kernel. Had to read /var/lib/dkms/nvidia/440.44/build/make.log to figure that out.

Nvidia Drivers:

Code: Select all
 
sudo apt-get purge nvidia*
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install build-essential libc6:i386

sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"

sudo apt install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-7 g++-7 gcc-9 g++-9

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7 --slave /usr/bin/gcov gcov /usr/bin/gcov-7

sudo update-initramfs -u
sudo reboot

## Hit CTRL+ALT+F1
sudo telinit 3
sudo CC="gcc-7.2.0" bash ~/Desktop/NVIDIA-Linux-x86_64-440.44.run
sudo reboot
lazyacevw
 
Posts: 36
Joined: Tue Mar 17, 2020 9:12 pm

Re: Linux install guide

Postby Dr_Rob » Mon Jul 13, 2020 1:01 am

I am a long-time folder with Windows, but I am a nube to Linux. I have been attempting to use Linux and fold with gpus without success.

After trying Ubuntu 19 and Mint 20 I am understanding Python 3 has replaced 2 when installing FAHcontrol. But trying Ubuntu 18.04.3 I still get the python dependency error following the commands above posted by leggazoid » Mon Aug 12, 2019 10:24 pm .

As FAH and Linux evolve, can anyone point me to a workable sequence where I can initialize and monitor the gpus. Thank you.
Last edited by Dr_Rob on Tue Jul 14, 2020 1:57 am, edited 1 time in total.
Dr_Rob
 
Posts: 20
Joined: Sat Sep 15, 2012 5:17 am

Re: Linux install guide

Postby Knish » Mon Jul 13, 2020 7:14 pm

when setting up fah on linux, does anyone ever get something where adding a gpu slot just doesn't take? Eventually a manual edit of config.xml to have slot 1 = GPU finally makes it work, but is there a faster way?
Knish
 
Posts: 90
Joined: Tue Mar 17, 2020 6:20 am

Re: Linux install guide

Postby Knish » Mon Jul 13, 2020 7:27 pm

Dr_Rob, for remote monitoring, try this https://linustechtips.com/main/topic/99 ... ahcontrol/ or there's another program called HFM.net and this forum has an entire stickied thread about it
Knish
 
Posts: 90
Joined: Tue Mar 17, 2020 6:20 am

Re: Linux install guide

Postby MeeLee » Wed Jul 15, 2020 2:07 am

You have to boot into GRUB, and select 'recovery', then boot into shell.
From there, you need to install the 'nvidia driver.run' file.
The driver install from the .run files is necessary, if you want to run more than 1 GPU on OpenCL.
You then need to install the OpenCL drivers, (sudo apt install ocl-icd-opencl-dev), before you can fold on GPUs in Linux.
MeeLee
 
Posts: 1040
Joined: Tue Feb 19, 2019 11:16 pm

Re: Linux install guide

Postby ipkh » Fri Sep 04, 2020 11:17 pm

Original post is outdated.
Ubuntu and its derivatives only need to have the Nvidia proprietary driver selected and installed via the additional drivers app. This pulls in the required compute packages.
Then use this forked copy of fahcontrol once you have installed the client.


https://github.com/cdberkstresser/fah-control/releases
ipkh
 
Posts: 154
Joined: Thu Jul 16, 2015 3:03 pm

Re: Linux install guide

Postby MeeLee » Sun Sep 06, 2020 3:25 am

ipkh wrote:Original post is outdated.
Ubuntu and its derivatives only need to have the Nvidia proprietary driver selected and installed via the additional drivers app. This pulls in the required compute packages.
Then use this forked copy of fahcontrol once you have installed the client.


https://github.com/cdberkstresser/fah-control/releases

That is, if you run 1 gpu, or aren't in need of overclocking, adjusting power levels, or adjusting the fan curve.
I tested a few ubuntu variants from 19.04 to 20.04, and none of them seem to be able to run 2 GPUs properly.
Probably not an issue with RTX 3090 GPUs, which you'll want to run no more than 1 per system anyway.
MeeLee
 
Posts: 1040
Joined: Tue Feb 19, 2019 11:16 pm

Next

Return to Q&A about unsupported distros of Linux

Who is online

Users browsing this forum: No registered users and 0 guests

cron