# Linux 18.04.1 Desktop Install with PPA and Folding, updated 09-26-2018
# Ubuntu install from Live CD or USB drive
# Make fresh install ubuntu 1804.1
# select minimal install
# unselect download and apply updates during installation
# enable autologin
# Ubuntu defaults to downloading updates, but prompts for installation.
# The auto update feature will be disabled to avoid issues while folding
# Do NOT apply the updates when prompted at startup.
# Updates will be applied manually after the nvida driver is installed.
# boot into Ubuntu desktop
# remove extra items from favorites launcher (menu bar on left side of screen)
# add terminal, settings, software updater and software & updates to favorites (menu lower left corner)
# edit settings for display timeout and disable screen lock
# settings-power 10 min,
# settings-Privacy screenlock off
# modify Nautilus Preferences - Behavior to restore the right-click create link
# open Nautilus file mgr, select File in menu top left corner - Preferences, Behaviour tab, check box for "show action to create symbolic link"
# copy Folding folder to home (notes, folding client, FAHControl and config.xml files)
# make shortcut for linux notes file and drag to desktop
# share Folding folder, enable guest access
# samba installation includes python version required for FAHControl
# edit /etc/samba/smb.conf to enable 18.04 to access to network shares on older hosts
# under workgroup line, add line "client max protocol=NT1"
sudo gedit /etc/samba/smb.conf
# use gedit to make grub visible and reduce timeout
# unhide grub boot menu by adding # at start of line GRUB_TIMEOUT_STYLE=hidden
# adjust the 10s default for the grub menu in line GRUB_TIMEOUT=10
# the default progam can be adjusted in line GRUB_DEFAULT=0
sudo gedit /etc/default/grub
sudo update-grub
# install nvidia driver PPA
# sudo add-apt-repository ppa:graphics-drivers/ppa
# update the software list
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
# use software & updates - additional drivers to install newest nvidia driver, currently 396.54
# reboot (menu, top right corner)
# add nvidia settings to launcher sidebar
# view gpu info in terminal
nvidia-smi
# install opencl index detection
sudo apt install ocl-icd-opencl-dev --fix-missing
# create xorg with coolbits for all gpus
# reboot after creating xorg
sudo nvidia-xconfig -a --enable-all-gpus --cool-bits=28
reboot
# Boinc installation
# install boinc and boinc manager
# add boinc manager to sidebar
# change view to advanced
# attach projects to boinc manager using project URL
# overclockers has teams for Rosetta, Seti and World Community Grid
# Rosetta URL: http://boinc.bakerlab.org/rosetta
# World Community Grid URL: www.worldcommunitygrid.org
sudo apt-get install boinc-client boinc-manager --fix-missing
# install sensors
sudo apt-get install lm-sensors --fix-missing
# optional - detect the motherboard and device sensors
# sudo sensors-detect
# reboot
# run software updater
# reboot
# run terminal update, upgrades, autoremove and clean
sudo apt-get update
sudo apt-get upgrade --fix-missing
sudo apt-get autoremove
sudo apt-get clean
# reboot
# run the software updater again and the terminal updates to comfirm all up to date.
# set software updates: check "never", "download", "every two weeks", "never"
# use sudo nautilus to change property of usr/bin/update-notifier to not executeable
# sudo nautilus
# use sudo nautilus to copy folding files to system folders
# copy fah config file to computer etc/fahclient
# copy gpu.txt to computer var/lib/fahclient
# sudo nautilus
# FAH installation
# confirm config.xml file in etc/fahclient to ensure client starts paused
# confirm gpu.txt in var/lib/fahclient to ensure gpus detected
# install the FAHControl and FAHClient deb files
# install python deb file for FAHControl to work if samba not installed
# enable autostart for fahclient
# add FAHControl to launcher sidebar
# **** additional usefull commands *****
# use gedit to change host and hostname
# reboot after editing host and hostname
sudo gedit /etc/hosts
sudo gedit /etc/hostname
reboot
# process information
top
# GPU LED brightness, off=0, 0-100%
nvidia-settings --assign GPULogoBrightness=0
# GPU powelimit adjustment for GPU 0
# 750Ti at 35w
# 1060 at 100w
# 1070 at 130w
# 970 at 160w
# 980Ti at 210w
# 1080Ti at 200w
sudo nvidia-smi -i 0 --persistence-mode=1
sudo nvidia-smi -i 0 --power-limit=160
#Remove all the nvidia* packages
sudo apt-get remove --purge nvidia*