[Ubuntu] F@H Installation For Ubuntu (GPU & CPU) - Overclock.net - An Overclocking Community

Forum Jump: 

[Ubuntu] [email protected] Installation For Ubuntu (GPU & CPU)

Reply
 
Thread Tools
post #1 of 274 (permalink) Old 08-06-2014, 10:54 AM - Thread Starter
Looking Ahead
 
TheBlademaster01's Avatar
 
Join Date: Dec 2008
Location: Cluain Dolcáin, Leinster (Ireland)
Posts: 13,043
Rep: 785 (Unique: 536)

LL

 

 

 

Contents

(click on the respective sections to jump to them)

 

Intro

 

Guides

 

 


 

Intro

 

 

The State Of Folding In Linux

 

It has been possible for a couple of years to be able to fold on CPUs in Linux but since the launch of Core ZETA (0x17) units last year, GPUs can also fold natively on Linux operating systems. Driver support however was not quite up there yet. nVidia GPUs were only really supported in Linux a couple of weeks after Core ZETA went public on Windows and AMD GPUs became capable of folding natively in Linux just a couple of months ago with the release of Catalyst 14.4.

 

 

 

Why Would You Want To Fold In Linux?

 

Folding in Linux is generally better because of a couple of reasons

 

  • Linux kernel is faster than Windows1
  • Linux is more stable than Windows
  • Linux is more flexible than Windows and can therefore be installed on vastly different architectures and boot media
  • Linux has more advanced tools for configuring your machines

 

There are also a couple of cons though

 

  • Linux has a steeper learning curve
  • Linux has very limited overclocking capabilities (you need to overvolt via vBIOS)
  • A lot of proprietary software won't work in Linux and will require you to boot into Windows/OSX

 

So if you are okay with the cons and/or deem the pros large enough let's go install Ubuntu!

 

 

1 Purely measuring frametimes Linux is ~5% faster. Actual gain in PPD will differ depending on the hardware because of the way QRB works (non-linear)


 

Guides

 

 

Installing Ubuntu

 

For consistency reasons we'll use Ubuntu 14.04 LTS - AMD64. Note that you can fold in pretty much any Linux distro. Of course 64-bit operating systems are pretty much a must since 32-bit would have some serious limitations with respect to memory initialization. Here are some instructions on how to install Ubuntu.

 

note: Ubuntu will install GRUB, which is a bootloader that can load pretty much any OS. It does however destroy the entry for the Windows bootloader, so uninstalling Ubuntu will leave you with a non-bootable Windows partition as well in case you were dual booting. Here are some steps on how to recover your Windows bootloader. A new Windows install will also restore the entry for the bootloader of course, but it will also destroy the entry for any other bootloader

 


 

Installing Drivers

 

By following the instructions in the link above you should be able to boot into Ubuntu. The first thing you will want to do is installing the proprietary drivers of your graphics card vendor.

 

AMD Drivers

 

1) Download the latest stable drivers Catalyst 14.12 (last updated 12/16/2014)

2) Extract the file

3) Open a terminal

4) Execute this command (change the catalyst version marked red in the command below according to which version you are installing)

 

cd Downloads; sudo sh amd-driver-installer-catalyst-14-4-x86.x86_64.run

 

5) Select "Install Driver" and agree to the AMD license prompt

6) Select "Automatic" and click "Continue"

7) The driver should be installed so you can click "Exit"

8) Execute this command in a new terminal

 

/usr/bin/aticonfig --initial

 

9) Reboot the system and your graphics card(s) should be ready to fold

 

 

Optional: AMD Overclocking & Monitoring (credit to anubis1127)

 

To configure multiple cards after doing the driver install, run the following command

 

sudo aticonfig --adapter=all --initial

 

Now you can tweak the cards with a tool called "aticonfig" or "amdconfig" (both work)

 

Listed below are some options to run aticonfig with to overclock the cards and more

 

List of arguments with comments by anubis1127 (Click to show)
--lsa 

       List detected adapters

--adapter=adapterlist 

(Ex. --adapter=all --adapter=0 --adapter=0,2)
Selects the adapters you specify for any other commands entered. (Ex. aticonfig --adapter=0,1 --odsc= 1200,1400)

--od-enable

       Unlocks the ability to change core or memory clock values,ie enables Overdrive

 --od-disable

       Disables ATI Overdrive related aticonfig options that were set

 --odgc, --od-getclocks

       Lists the current and peak clocks, the theoretical range clocks can be set to, and most handy for me the current load on the GPU

 --odsc, --od-setclocks={NewCoreClock|0,NewMemoryClock|0}

       Sets the core and memory clock to the values specified in MHz, settings revert to stock after restart

 --odrd, --od-restoredefaultclocks

       Sets the core and memory clock to the default values, restart X to for changes.

 --odcc, --od-commitclocks

       Commit the clocks you have set to start with X, only do this after your OC proves to be fully stable, or as stable as you need it to be, heh

 --odgt, --od-gettemperature
​
       Gets the temperature  ;)

 

 

To monitor Termperatures, GPU Utilization and Clock Speeds run the following command

 

watch -n5 aticonfig --adapter=all --odgt --odgc

 

 

NVIDIA Drivers

 

1) For the following graphics cards:

 

GTX 660 Ti

GTX 670

GTX 680

GTX 690

GTX 760

GTX 770

 

Install ForceWare 319.76 -- later drivers have performance issues with GK104 when folding (last updated 8/6/2014)

 

For other graphics cards download the latest stable drivers ForceWare 346.22 (last updated 10/14/2014)

 

--note: For non-Maxwell GPUs skip step M-I and M-II

 

(credit to Preim)

 

M-I) Run this in a terminal:

 

sudo gedit /etc/default/grub

 

M-II) Edit the line "GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" and add nomodeset like:

 

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

 

2) Disable the GUI of your operating system with the following command. Note that it is "kdm" for KDE Display manager and "lightdm" for the Display manager in newer Debian/Ubuntu distros

 

sudo service gdm stop

 

3) Press CTRL + F1 to get a prompt to insert your Ubuntu username and password and log in

4) Run the following command

 

cd Downloads; chmod +x NVIDIA*; sudo sh NVIDIA*

 

It will most likely complain about nouveau (the open source nVidia drivers) being installed and therefore fail to install. Answer "yes" to all the prompts

 

5) Run the following command

 

sudo apt-get remove --purge nvidia*; sudo reboot

 

6) When it finishes rebooting, disable the GUI once again

 

sudo service gdm stop

 

7) login and enter this command

 

cd Downloads; sudo sh NVIDIA*

 

8) Answer "yes" to all of the questions

9) When it finishes installing, run the following command to reactivate your GUI

 

sudo service gdm start

 

Now your graphics card(s) should be ready to fold.

 

 

Optional: NVIDIA Overvoltage, Overclocking & Fan Control

 

--note: Overclocking option requires ForceWare 340.17 BETA or later!

--note: Overvoltage option requires ForceWare 346.22 BETA or later!

 

O-1) Run the following command to enable overclocking & fan control via X server (the Linux equivalent of nVidia Control Panel)

 

sudo nvidia-xconfig --cool-bits=28

 

O-2) Reboot your PC and run

 

sudo nvidia-settings

 

The overclocking options should be under PowerMizer, fan control can be done under Thermal Settings

 

Screenshots for illustrative purposes (Click to show)

 

 

O-3) To overvolt your nVidia GPU run this in a terminal

 

​sudo nvidia-settings -q all | grep -i voltage

 

It will give you an output very similar to this (GTX 780 Ti output)

 

Image for illustrative purposes (Click to show)

 

In this case my maximum offset voltage will be +75mV, so a total core voltage of 1275mV (or 1.275V).

 

O-4) To apply the +75mV voltage offset run this in a terminal2

 

sudo nvidia-settings -a GPUOverVoltageOffset=75000

 

The maximum overvoltage offset depends on your GPU


 

Installing The Folding Client

 

The folding client can be installed by going to the Stanford site and downloading the packages corresponding to your OS.

 

1) These packages are necessary for Ubuntu:

 

  • FAHClient (The client that manages the actual folding processes)
  • FAHControl (The graphical front end to make configuring the client easier)

 

2) After downloading the packages they should be in your Downloads directory, click on them to open a link to the Ubuntu Software Center

3) Click on "Install" in Ubuntu Software Center and the programs should start installing (they might stall for a while, this is normal behaviour)

 

 

Optional: Manual [email protected] Client Install

 

Alternatively you can run this installation script that will install the folding client in a single directory. It includes bigadv install with TheKraken, so this is recommended for 2/4P systems.

 

To run this script, download the file "install.txt" below and run the following commands in a new terminal:

 

mv Downloads/install.txt Downloads/install.sh; chmod +x Downloads/install.sh; bash Downloads/install.sh

 

 

install.txt 3k .txt file

 

This script will do the following:

 

  • Get the folding client and install it
  • Finetune checkpoint, power and download settings
  • If desired, configure the client to run bigadv and install Kraken for load balancing
  • If desired, install the graphical front end
  • If desired, run the folding client with GUI
  • Create a script run.sh that will run the client in terminal + GUI in a new window

 

To run the client after running the script enter this in a new terminal:

 

cd fahv7/v7; ./run.sh

 

 

Optional: Installing CPU Temperature Monitoring Software

 

You might want to keep a check on your CPU temperatures. A good tool in Linux to check CPU temps is i7z.

 

To Install and run this, run this in a new terminal

 

wget http://i7z.googlecode.com/svn/trunk/i7z_64bit; mv i7z_64bit i7z; chmod +x i7z; sudo ./i7z

 

To close this application hit CTRL + C as with most applications that run in a terminal.

 

To run this application again run this in a new terminal:

 

sudo ./i7z

 


 

Update log

 

08/20/2014 - Added AMD support (credit to @anubis1127)

10/14/2014 - Change to install.txt to fix possible broken package manager

12/16/2014 - Added nVidia overvoltage options and updated drivers references

01/14/2015 - Blank splash screen fix for 2nd gen Maxwell GPUs (credit to @Preim)


 



TheBlademaster01 is offline  
Sponsored Links
Advertisement
 
post #2 of 274 (permalink) Old 08-13-2014, 08:05 AM
New to Overclock.net
 
anubis1127's Avatar
 
Join Date: Sep 2010
Location: Maryland
Posts: 9,895
Rep: 149 (Unique: 125)
Excellent write up. I've been folding on 780 for a couple weeks in Linux, and it seems very stable for me. I did lower my GPU OC slightly, the 1.212V vbios seemed to heat up my card a bit too high for my liking in Linux, so I reverted back to stock voltage with a lower OC.



anubis1127 is offline  
post #3 of 274 (permalink) Old 08-13-2014, 08:10 AM
New to Overclock.net
 
Chooofoojoo's Avatar
 
Join Date: Sep 2012
Location: Denver Colorado
Posts: 1,408
Rep: 72 (Unique: 47)
Fantastic write-up! I need to sneak a card into my 4p. wheee.gif

"For that sort of work, a ham sandwich stuffed into a power outlet would do the job." -coachmark2


Chooofoojoo is offline  
Sponsored Links
Advertisement
 
post #4 of 274 (permalink) Old 08-13-2014, 10:11 AM - Thread Starter
Looking Ahead
 
TheBlademaster01's Avatar
 
Join Date: Dec 2008
Location: Cluain Dolcáin, Leinster (Ireland)
Posts: 13,043
Rep: 785 (Unique: 536)
Quote:
Originally Posted by anubis1127 View Post

Excellent write up. I've been folding on 780 for a couple weeks in Linux, and it seems very stable for me. I did lower my GPU OC slightly, the 1.212V vbios seemed to heat up my card a bit too high for my liking in Linux, so I reverted back to stock voltage with a lower OC.

 

Thanks :thumbsups

 

Yes, it does seem to run hotter but also more efficiently :D. I think the same is true for CPU folding

 

Quote:
Originally Posted by Chooofoojoo View Post

Fantastic write-up! I need to sneak a card into my 4p. wheee.gif

 

Thanks CFJ!

 

What card will you be running?

 

Also, I made a script that automates client install w/ Kraken. You might be interested in that if you ever reinstall :thumb:


 



TheBlademaster01 is offline  
post #5 of 274 (permalink) Old 08-16-2014, 07:13 PM
New to Overclock.net
 
anubis1127's Avatar
 
Join Date: Sep 2010
Location: Maryland
Posts: 9,895
Rep: 149 (Unique: 125)

I have been testing a bit of AMD GPU folding on my main rig with two 7870s.  Here are a couple quick tips I have learned along the way.

 

To configure multiple AMD GPUs run this after driver install:

 

sudo aticonfig --adapter=all --initial

 

That will add all the detected adapters to your /etc/X11/xorg.conf file.  You could also individually specify the adapters with --adapter=0,1,4,etc.

 

aticonfig, or amdconfig, either works, is a great tool that allows a lot of control over your GPUs.  Run it with --help to see all the options, here are some options I found useful to maximize PPD, ie OC.

 

--lsa 
       List detected adapters

--adapter=adapterlist (Ex. --adapter=all --adapter=0 --adapter=0,2)
       Selects the adapters you specify for any other commands entered. (Ex. aticonfig --adapter=0,1 --odsc=1200,1400)

--od-enable
       Unlocks the ability to change core or memory clock values,ie enables Overdrive.

 --od-disable
       Disables ATI Overdrive related aticonfig options that were set.

 --odgc, --od-getclocks
       Lists the current and peak clocks, the theoretical range clocks can be set to, and most handy for me the current load on the GPU.

 --odsc, --od-setclocks={NewCoreClock|0,NewMemoryClock|0}
       Sets the core and memory clock to the values specified in MHz, settings revert to stock after restart.

 --odrd, --od-restoredefaultclocks
       Sets the core and memory clock to the default values, restart X to for changes.

 --odcc, --od-commitclocks
       Commit the clocks you have set to start with X, only do this after your OC proves to be fully stable, or as stable as you need it to be, heh.

 --odgt, --od-gettemperature
       Gets the temperature.  ;)

 

You can 'watch' aticonfig with a couple of those options you can monitor your GPU utilization, clock speed, and temperate, which is nice when Folding:

 

watch -n5 aticonfig --adapter=all --odgt --odgc 

 

Which outputs this ever 5 seconds:

 

If you prefer a GUI application, there is also AMDOverdriveCtrl, which seems to work OK, I haven't tested it on this machine with multiple GPUs, I was using it on my HTPC with one GPU and it worked fine when I was doing my initial AMD Linux testing.  On this box I just used aticonfig to set my known stable clock speed of 1200,1400, and then committed it.

 

Oh, as you can tell the GPU load is at 93%, that is on a p9201, 0x17 WU.  PPD is down ~10% vs Windows at same clock on this WU, I'm seeing 97k PPD in Linux vs 106k PPD in Windows at the same clock speed on my faster 7870.

Happy Folding.




anubis1127 is offline  
post #6 of 274 (permalink) Old 08-20-2014, 11:33 AM - Thread Starter
Looking Ahead
 
TheBlademaster01's Avatar
 
Join Date: Dec 2008
Location: Cluain Dolcáin, Leinster (Ireland)
Posts: 13,043
Rep: 785 (Unique: 536)

Thanks for the information anubis. I added it to the guide :thumbsups

 

If you can tell me how you installed AMD overdrive, I'll add it to the guide as well :thumb:


 



TheBlademaster01 is offline  
post #7 of 274 (permalink) Old 09-18-2014, 07:00 AM
PC Cannibal
 
DarthBaggins's Avatar
 
Join Date: Aug 2013
Location: Acworth, GA
Posts: 10,031
Rep: 89 (Unique: 70)
I plan on installing a copy of Mint or Ubuntu to the Source Reboot since I installed the 8350 into that rig, and should get the 270x back folding in linux finally

*Official*CaseLabs Owners Club!
[Official]Polaris Owners Club
JAC Temper tantrum
(40 items)
The Box
(10 items)
Jackson's First Rig
(15 items)
CPU
i7 6900k
Motherboard
ASUS x99 Deluxe
GPU
MSI GTX 1080 Ti Aero OC
RAM
Corsair Dominator Platinum 32GB DDR4 2400 CL10 (4x 8GB)
Hard Drive
Samsung 960 EVO 500GB NVMe - Windows 10 Pro
Hard Drive
Inland Professional SSD - Linux Mint 19
Hard Drive
Seagate Barracuda 2TB
Hard Drive
Seagate Barracuda 2TB
Hard Drive
Samsung 840 Evo 1TB (RAID 0)
Hard Drive
Samsung 840 Evo 1TB (RAID 0)
Hard Drive
Samsung 850 EVO 500GB (RAID 0)
Hard Drive
Samsung 850 EVO 500GB (RAID 0)
Hard Drive
Seagate Barracuda 2TB
Optical Drive
LG GP65NS60
Power Supply
Seasonic 760XP²
Cooling
EKWB Supremacy EVO x99 Nickel/Plexi
Cooling
Corsair ML120 (X6)
Cooling
EK D5 PWM
Cooling
EK EX-RES250 RGB
Cooling
EKWB PE360
Cooling
EK ZMT Tubing 3/8 x 5/8
Cooling
EKWB FC1080TI GTX Nickel Plexi
Case
InWin 303 Black
Operating System
Windows 10 Pro 64bit
Operating System
Ubuntu 14.04LTS (Mate Mod)
Monitor
Acer XF270HU
Keyboard
Cooler Master Master Keys Pro S RGB
Keyboard
iKBC New Poker II (Type-C) with Cherry MX-Browns
Keyboard
Ducky OCN Edition with Cherry MX-Blacks
Mouse
Fnatic Flick G1
Mouse
FinalMouse Scream One
Mouse
Zowie EC1-A Special Edition (White)
Mouse
Logitech G403 Wireless
Mouse
Razer Deathadder Chroima Black Ops 3 Edition
Mousepad
Razer Goliathus Call of Duty: Black Ops III Edition Soft Gaming Mouse Mat, Medium Speed
Audio
Kanto YU2 Gloss White
Audio
Sennheiser PC 360 Special Edition
Audio
Sound Blaster Zx
Other
CableMod Widebeam RGB LED kit (x2)
Other
Mod-One PC Custom Cables
CPU
i7 3770
Motherboard
ASUS P8H61-I R2.0
RAM
Crucial Ballistix Tactical 8GB DDR3 1600 CL8 (2x4GB)
Hard Drive
Samsung 860 EVO 250GB
Hard Drive
Seagate Barracuda 500GB SSHD
Power Supply
Seasonic SS-400FL
Case
Lian-Li PC-Q07
Operating System
Windows 10 Home 64Bit
Keyboard
iKBC Poker II Type-C - Cherry MX Browns
Mouse
Microsoft Intellimouse Optical 1.1A
CPU
Phenom x6 1055T
Motherboard
Gigabyte GA-990FXA-UD3
GPU
EVGA GTX 1050 SC (1923/3600)
RAM
Corsair Vengeance 32GB (4x8GB DDR3 1600)
Hard Drive
Seagate Barracuda 2TB 7200RPM
Hard Drive
Corsair Force GS 128GB
Power Supply
Corsair HX620
Cooling
CoolerMaster Masterliquid 120 Lite
Case
Anidees AI7
Operating System
Ubuntu 14.04 LTS
Operating System
Windows 10 Home
Monitor
Asus VS238H
Keyboard
Velocifire TKL w/ Outemu Browns
Mouse
Fnatic Flick G1 w/ CorePad Skates
Mousepad
razer goliathus black ops 3 edition
▲ hide details ▲


DarthBaggins is offline  
post #8 of 274 (permalink) Old 09-18-2014, 07:17 PM
BWG
Retired Staff
 
BWG's Avatar
 
Join Date: Feb 2011
Location: Laurelville, OH
Posts: 13,336
Rep: 143 (Unique: 113)

Wow anubis1127, that's pretty impressive. 

 

Yeah, great write-up. So, a GTX 660 is not on the list. Would it be covered as well? If so, what kind of gain should I expect %-wise (best guess)?


I'm still here.


BWG is offline  
post #9 of 274 (permalink) Old 10-05-2014, 11:38 AM
New to Overclock.net
 
warpuck's Avatar
 
Join Date: Oct 2009
Location: North of CaNanda
Posts: 745
Rep: 21 (Unique: 17)
Screenshotfrom2014-10-05143532.png 787k .png file

Winter is coming and the landlord has yet to turn the heat on. It got down to 2C last night. So I decided to start folding again. It is easy. Click on the orange brief case icon. Type in BOINC in the search bar. Selected poem. (I am currently using old 5770 video cards) and did BAM manager. Great every thing is humming along her Thuban is producing a steady 45C temp. I don't want to stress these old vid cards. So I decide to install it on the 8350 machine also. I went through the same process and guess what it automatically started the 8350 folding on poem. Here is the fun part I can't access the manager on the 8350 machine. It has a 7790 and I would like it to fold. Ubuntu 14.4. Note I tried the cookbook style command line install 1st on the thuban machine. Adding the PPA line from the boinc site to the software center (icon with wrench and gear). and then did the command line install. And failed. I think setting the PPA address from the BOINC site did the trick and allowed the GUI install to function. My Gigabyte 7870 is visiting Gigabyte for repair and I would like it to fold again when it returns. It seems the Thuban is controlling the folding functions on both computers. I intend on adding the 7870 to 8350 in addition to the 7790. I have a 1080i monitor on that one and a 2560 also. So what can I do to make it happen ?

Primary: Crossover 27" 2560 x 1440, Crosshair VI, Ryzen 1600, Flair 2400, GTX 690. Secondary: MSI 890FX GD-70 R 2.0, FX-8350, HD 7790, Kingston 8 GB x 2, Western 1Tb hybrid, VisionTek 1000
[


warpuck is offline  
post #10 of 274 (permalink) Old 10-05-2014, 02:31 PM
New to Overclock.net
 
Chooofoojoo's Avatar
 
Join Date: Sep 2012
Location: Denver Colorado
Posts: 1,408
Rep: 72 (Unique: 47)
Folding and BOINC are two vastly different software platforms. Perhaps you ask your question in the BOINC section? OR you stay in this section and download the latest Folding At Home client as per theBlademaster01's wonderful instructions in the top post and get Folding for team 37726!

"For that sort of work, a ham sandwich stuffed into a power outlet would do the job." -coachmark2


Chooofoojoo is offline  
Reply

Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the Overclock.net - An Overclocking Community forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
If you do not want to register, fill this field only and the name will be used as user name for your post.
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:

Log-in



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page


Forum Jump: 

Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off