• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

F@H on Ubuntu 22.04 How To

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

the garynator

Chief folding_monkey
Joined
Nov 16, 2002
Location
Neenah, WI
Decided to throw something together quick, this How-To is at a very early stage, so excuse the incompleteness. I will update it with screenshots and ensure all steps are correct at some point this coming week, but figured some of you may want to mess with it in the meantime. I did a lot of it from memory, so bear with me lol

Download the Desktop iso for Ubuntu 22.04 from https://releases.ubuntu.com/22.04/

1723306533514.png

Download and run rufus https://rufus.ie/en/ NOTE: Kyle has informed me that BalenaEtcher is an easier boot creator, I'll use this when I go through the install this week and update**

Plug in usb drive

Open Rufus, select the iso, ensure the usb drive you’re using is selected.

1723306545350.png

Click START

On the machine your installing linux on, boot to the USB drive. Note: these may not be in the right order, will update soon.

Select 'Try or Install Ubuntu':
1725385684691.png
Select 'Install Ubuntu':
1725385855798.png

Click 'Continue':
1725385893230.png
Enter wireless key if you’re connecting through wifi
Select 'Minimal Installation' and click 'Continue':
1725385937841.png

If there is only one hard drive / nvme / ssd, click 'Install Now'. If you are dual booting / there are multiple drives, select something else and configure hard drive. I don't have screenshots of this at the moment, I will grab some and update this next time I run into it:
1725386199901.png

Click Continue:
1725386230230.png

Enter info in the Who are you? screen. Select 'Log in Automatically' and click 'Continue':
1725386291046.png

Let Ubuntu Install:
1725386318554.png

Click 'Restart Now':
1725386354525.png

It will prompt you to remove the install USB drive and hit 'Enter' to finish rebooting.

Clcik Skip on connect your online accounts screen:
1725386418817.png

Click 'Skip for Now' and 'Next' on the Enable Ubuntu Pro screen:
1725386483514.png

Click 'Next':
1725386506702.png

'Next':
1725388075715.png

Ready to go should show, you can hit 'Done'. If the 'Software Updater' pops up, click 'Install Now':
1725388130717.png
Click 'Install Now':
1725388166959.png

Click that you do not want to upgrade to Ubuntu 24.

Open Ubuntu Software, click 'Updates', click 'Update All':
Note, Snap Store will not update
1725388243889.png

I usually install NoMachine at this point so I can do everything else from my main computer. For install instructions, see the section about NoMachine below.

Install nVidia Drivers:

Click ‘Show Applications’ button:

1723306556562.png

Open ‘Software & Updates’:

1723306563119.png

Click ‘Additional Drivers’:

1725383133110.png

Select 'Using NVIDIA Server Driver metapackage from nvidia-driver-535-server (proprietary)' and click 'Apply Changes'. To use NVIDEA xServer config for fan control, select 550:
(Note: I need to do further testing, but I’m quite certain performance is better with 535 drivers vs 545, however, 550 may be just as fast but I need to verify.)
1725383395968.png

Reboot.

Install python2.7:

Open terminal and type the following (you may need to type Y for yes at some points):

sudo apt update
1725384945301.png

when that is complete, type:

sudo apt install python2
Type y and hit enter to continue:
1725385013218.png

when that’s complete, verify the version by typing:

python2 –V

It should display something like “Python 2.7.18”:
1725384915039.png

Reboot

Install F@H:

Open ‘Ubuntu Software’:

1723306578539.png

Search for folding and install (fcole90’s snap)

1723306584441.png

Click on Folding@Home:

1723306592246.png

Click 'Install':
1725384733003.png
If your gpu slots show disabled do the following (you will likely need to do this every time you reboot, as your gpu slots will likely be disabled):

Close FAHControl if you have it open.

Click ‘Show Applications’ button:

1723306599635.png

Open ‘System Monitor’:

1723306603403.png

Click ‘Processes’ if it’s not already selected.

Click the menu and select ‘All Processes’ (you will only need to do this the first time):

1723306611450.png

Find FAHClient in the list, if you have FAH cores, then it should be working already, if not, right click and click ‘Kill’:

1723306617745.png

FAHClient should disappear then show up again, and you’ll see the core(s) and corewrapper(s) pop up in the list too.

1723306623054.png

Now open F@H control and everything should be working.



Other quality of life stuff:

Set time

Open Settings from applications, then click 'Privacy':
1725384093587.png

Click 'Screen', set 'Blank Screen Delay' to 'Never' and turn off 'Automatic Screen Lock':
1725384148293.png

Remote Desktop:

For remote desktop, nomachine was the easiest to get running.
https://www.nomachine.com/

Install on ubuntu machine and your windows machine. It works well.

How to install on ubuntu:
Go to https://www.nomachine.com
Click Download:
1725388851485.png

Select amd64 debian package:
1725388833626.png
Click 'Download':
1725382881660.png

Open destination folder:
1725382945756.png

Right click and click 'Open with other application'
1725383010575.png

Select 'Software Installer' and click 'Select:
1725383038346.png

Click 'Install':


Now to connect to the remote machine, Open NoMachine on your windows machine, it should find the Ubuntu computer. Double click on it.
1725382662484.png

Input your connection info, select 'Save this password in the connection file' and 'Always login using this method on this server':
1725382762238.png

Click 'OK' and you should be connected now!

You will need a monitor connected for remote desktop to work properly. You can force install a usb driver on windows but it's tempormental if you reboot or connect a monitor and needs to be done through the command prompt. Never messed with it in ubuntu as it was a big enough pita for windows.

We solved this by getting HDMI monitor emulators. These work great. When need to work on the computer directly, I just unplug and plug in monitor, and when done, swap back. You can leave them in when connecting a monitor but the mouse gets lost on the 'second screen' sometimes so i just swap.
Here are the ones we bought:
nVidia overclocking:

Note: only works with one video card, if you have 2, it will only allow you access to 1.

Here’s how to install GreenWithEnvy:

https://www.omgubuntu.co.uk/2023/10/greenwithenvy-ubuntu-install-nvidia-gpu

Run the following in Terminal:

sudo apt install flatpak

Then:

flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Then:

flatpak install flathub com.leinardi.gwe

Then:

sudo nvidia-xconfig --cool-bits=12

Now reboot. You should be able to open GreenWithEnvy now.



Nvidia X Server settings – Enable Fan Control

If you’re running multiple GPUs and want to be able to control fans on all of them without doing it through the Terminal, here’s how:

https://askubuntu.com/questions/1411667/unable-to-control-nvidia-fan-speed

Edit the file: /./etc/X11/Xwrapper.config:



Steps:
NOTE: These are case sensative
cd /./etc/X11/

sudo -s [because you need root access]

gedit Xwrapper.config &

add the line needs_root_rights=yes before allowed_users=console.

Therefore the Xwrapper.config file will be:

# Xwrapper.config (Debian X Window System server wrapper configuration file)

#

# This file was generated by the post-installation script of the

# xserver-xorg-legacy package using values from the debconf database.

#

# See the Xwrapper.config(5) manual page for more information.

#

# This file is automatically updated on upgrades of the xserver-xorg-legacy

# package *only* if it has not been modified since the last upgrade of that

# package.

#

# If you have edited this file but would like it to be automatically updated

# again, run the following command as root:

# dpkg-reconfigure xserver-xorg-legacy

needs_root_rights=yes

allowed_users=console



Reboot

Now you can open NVIDIA X Server from applications screen:

1723306642622.png

Click Thermal Settings, then “Enable GPU Fan Settings” and you can move the sliders:

1723306648817.png

*Note: this worked for me, but after I rebooted recently, I can no longer change fan settings, I will update this when I figure out why.

Update:
A workaround is to launch x settings via the terminal as root:

sudo nvidia-settings

This will allow you to make changes to fan settings and overclock. I believe you do need coolbits set to 12 (see greenwithenvy install section). I will flush this out further in the future, hoping greenwithenvy won't be required.


Other Useful Stuff

List Nvidia driver / hardware info:


Open Terminal and type:

nvidia-smi



Run fah as root

If FAHClient is not running (and you’ve selected ‘All Processes’ in System Monitor), here’s how to launch F@H as root (it must be run as root or it will not work). You shouldn't need to do this outside of rare circumstances.

Sudo fah-client-fcole90


One last note, when changing directories in Terminal, it is case sensative. I hate to admit it, but this tripped me up a few times lol.
Post magically merged:

For Temp Monitoring open Ubuntu Software, search and install 'psensor'
1723307153923.png
E
 

Attachments

  • 1723306569194.png
    1723306569194.png
    132.6 KB · Views: 61
  • 1725384028008.png
    1725384028008.png
    76.1 KB · Views: 0
  • 1725386171513.png
    1725386171513.png
    388.7 KB · Views: 0
Last edited:
You make it look so easy but again I have to say no. I very much would have Mint & F@H but it never worked. AND I MEAN NEVER!!!!!!
 

Attachments

  • json-error-computer.gif
    json-error-computer.gif
    2 MB · Views: 0
You make it look so easy but again I have to say no. I very much would have Mint & F@H but it never worked. AND I MEAN NEVER!!!!!!
Why make a comment if your not going to make use of someone taking the time to help those of us who are interested ?

I for one really appreciate the time and effort it took for Gary to post this. :cheers:

Just say thank you or hit the like button instead of...

 
A lot of people seem to like to keep the secret sauce to themselves. We, the monkeys, will spill the beans on everything. We are working on getting multi card overclocking working. We have seen in Windows that a 4070 Super/4070Ti is good for another 1 million PPD when overclocked. Just the for monkeys alone that means we have 13 million PPD more we could gain. Once we figure it out, we will let everyone know.
 
Last edited:
A lot of people seem to like to keep the secret sauce to themselves. We, the monkeys, will spill the beans on everything. We are working on getting multi card overclocking working. We have seen in Windows that a 4070 Super/4070Ti is good for another 1 million PPD when overclocked. Just the for monkeys alone that means we have 13 million PPD more we could gain. Once we figure it out, we will let everyone know.
The machine I had going in the retirement. Will be my test machine for Ubuntu. It will be sending at least a month of its first work units. (Assuming I get it to work):unsure:

The monkey's way.
 
That's why we did Ubuntu. Kyle spent a while trying to get mint working and couldn't. We tried some other versions too but had other issues.
Same with 22.04 tried and tried it just pissed me off so much!!!!!
Decided to throw something together quick, this How-To is at a very early stage, so excuse the incompleteness. I will update it with screenshots and ensure all steps are correct at some point this coming week, but figured some of you may want to mess with it in the meantime. I did a lot of it from memory, so bear with me lol

Download the Desktop iso for Ubuntu 22.04 from https://releases.ubuntu.com/22.04/

View attachment 368122

Download and run rufus https://rufus.ie/en/ NOTE: Kyle has informed me that BalenaEtcher is an easier boot creator, I'll use this when I go through the install this week and update**

Plug in usb drive

Open Rufus, select the iso, ensure the usb drive you’re using is selected.

View attachment 368123

Click START

On the machine your installing linux on, boot to the USB drive. Note: these may not be in the right order, will update soon.

Format drive

Select Minimal Installation

Follow onscreen prompts, enter wireless key if you’re connecting through wifi

Select install updates on that screen

Complete Ubuntu install.

Install nVidia Drivers:

Click ‘Show Applications’ button:

View attachment 368124

Open ‘Software & Updates’:

View attachment 368125

Click ‘Additional Drivers’ and install driver:

View attachment 368126

Note: I need to do further testing, but I’m quite certain performance is better with 535 drivers vs 545, however, 550 may be just as fast but I need to verify.

Install python2.7:

Open terminal and type the following (you may need to type Y for yes at some points):

sudo apt update

when that is complete, type:

sudo apt install python2

when that’s complete, verify the version by typing:

python2 –V

It should display something like “Python 2.7.18-3”

Reboot

Install F@H:

Open ‘Ubuntu Software’:

View attachment 368127

Search for folding and install (fcole90’s snap)

View attachment 368128

Click on Folding@Home:

View attachment 368129

Click Install, when complete, set up F@H.

If your gpu slots show disabled do the following (you will likely need to do this every time you reboot, as your gpu slots will likely be disabled):

Close FAHControl if you have it open.

Click ‘Show Applications’ button:

View attachment 368130

Open ‘System Monitor’:

View attachment 368131

Click ‘Processes’ if it’s not already selected.

Click the menu and select ‘All Processes’ (you will only need to do this the first time):

View attachment 368132

Find FAHClient in the list, if you have FAH cores, then it should be working already, if not, right click and click ‘Kill’:

View attachment 368133

FAHClient should disappear then show up again, and you’ll see the core(s) and corewrapper(s) pop up in the list too.

View attachment 368134

Now open F@H control and everything should be working.



Other quality of life stuff:

Remote Desktop:


For remote desktop, nomachine was the easiest to get running.
https://www.nomachine.com/

Install on ubuntu machine and your windows machine. It works well.
You will need a monitor connected for remote desktop to work properly. You can force install a usb driver on windows but it's tempormental if you reboot or connect a monitor and needs to be done through the command prompt. Never messed with it in ubuntu as it was a big enough pita for windows.

We solved this by getting HDMI monitor emulators. These work great. When need to work on the computer directly, I just unplug and plug in monitor, and when done, swap back. You can leave them in when connecting a monitor but the mouse gets lost on the 'second screen' sometimes so i just swap.
Here are the ones we bought:
nVidia overclocking:

Note: only works with one video card, if you have 2, it will only allow you access to 1.

Here’s how to install GreenWithEnvy:

https://www.omgubuntu.co.uk/2023/10/greenwithenvy-ubuntu-install-nvidia-gpu

Run the following in Terminal:

sudo apt install flatpak

Then:

flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Then:

flatpak install flathub com.leinardi.gwe

Then:

sudo nvidia-xconfig --cool-bits=12

Now reboot. You should be able to open GreenWithEnvy now.



Nvidia X Server settings – Enable Fan Control

If you’re running multiple GPUs and want to be able to control fans on all of them without doing it through the Terminal, here’s how:

https://askubuntu.com/questions/1411667/unable-to-control-nvidia-fan-speed

Edit the file: /./etc/X11/Xwrapper.config:



Steps:
NOTE: These are case sensative
cd /./etc/X11/

sudo -s [because you need root access]

gedit Xwrapper.config &

add the line needs_root_rights=yes before allowed_users=console.

Therefore the Xwrapper.config file will be:

# Xwrapper.config (Debian X Window System server wrapper configuration file)

#

# This file was generated by the post-installation script of the

# xserver-xorg-legacy package using values from the debconf database.

#

# See the Xwrapper.config(5) manual page for more information.

#

# This file is automatically updated on upgrades of the xserver-xorg-legacy

# package *only* if it has not been modified since the last upgrade of that

# package.

#

# If you have edited this file but would like it to be automatically updated

# again, run the following command as root:

# dpkg-reconfigure xserver-xorg-legacy

needs_root_rights=yes

allowed_users=console



Reboot

Now you can open NVIDIA X Server from applications screen:

View attachment 368135

Click Thermal Settings, then “Enable GPU Fan Settings” and you can move the sliders:

View attachment 368136

*Note: this worked for me, but after I rebooted recently, I can no longer change fan settings, I will update this when I figure out why.

Update:
A workaround is to launch x settings via the terminal as root:

sudo nvidia-settings

This will allow you to make changes to fan settings and overclock. I believe you do need coolbits set to 12 (see greenwithenvy install section). I will flush this out further in the future, hoping greenwithenvy won't be required.


Other Useful Stuff

List Nvidia driver / hardware info:


Open Terminal and type:

nvidia-smi



Run fah as root

If FAHClient is not running (and you’ve selected ‘All Processes’ in System Monitor), here’s how to launch F@H as root (it must be run as root or it will not work). You shouldn't need to do this outside of rare circumstances.

Sudo fah-client-fcole90


One last note, when changing directories in Terminal, it is case sensative. I hate to admit it, but this tripped me up a few times lol.
Post magically merged:

For Temp Monitoring open Ubuntu Software, search and install 'psensor'
View attachment 368137
You did a very good job explaining the process of installing in Ubuntu and F@H.
 
Same with 22.04 tried and tried it just pissed me off so much!!!!!

You did a very good job explaining the process of installing in Ubuntu and F@H.
You probably didn't install Python2. Try it again. The process works! Your card will make more PPD in Linux than in Windows overclocked. Its worth it!
 
You probably didn't install Python2. Try it again. The process works! Your card will make more PPD in Linux than in Windows overclocked. Its worth it!
I am not going to try again. Ever since I starting used HMF I get better WU's and better PPD than just using the regular F@H setup. Too many bad and very angry memories.
 
HMF does not fold. Its just a monitoring program. It also calculates PPD estimates higher.
Yup, it uses last 3 frames by default. The most accurate way to set it is use download time and all frames average. It still reads a bit higher than actual as it uses 100% complete instead of upload complete.
 
HMF does not fold. Its just a monitoring program. It also calculates PPD estimates higher.
So what is that I have on my screen that says HFM VER 10.3.2016 and is showing the 2 GPUS folding percentage of WU and PPD? And I get all kinds of different WU that I never got before with the regular F@H client.
 

Attachments

  • Screenshot 2024-08-12 073412.png
    Screenshot 2024-08-12 073412.png
    79.4 KB · Views: 8
Back