Zyratastic - Ubuntu

From miki
Revision as of 21:36, 5 September 2016 by Mip (talk | contribs) (→‎Essential)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

This is the configuration page for the Ubuntu partition on Zyratastic.

Configuration Files

All configuration files can be found here.

Installed Applications

Common applications

See Common configuration for Linux.

Essential

Metacity (metacity)
  • To replace compiz when running games
Oracle JDK 7 (oracle-java7-installer, repo webupd8team) See Linux_Software#Oracle / Sun Java
ack-grep (ack-grep)
acpi (acpi)
nvidia (bumblebee-nvidia nvidia-331 nvidia-settings-331) Packages installed as 2015/02/19
bumblebee                     3.2.1-5
bumblebee-nvidia              3.2.1-5
nvidia-331-updates            331.113-0ubuntu0.0.4
nvidia-libopencl1-331-updates 331.38-0ubuntu7.1
nvidia-opencl-icd-331-updates 331.113-0ubuntu0.0.4
nvidia-settings               331.20-0ubuntu8
unity tweak tool (unity-tweak-tool) from Software Center
skype (skype)
SSH (ssh)

Enable GNOME Keyring at startup such that SSH key is cached at login. In Startup Application, create launcher:

Name SSH Key Agent
Command /usr/bin/gnome-keyring-daemon --start --components=ssh
Comment GNOME Keyring: SSH Agent
LTS Enablement Stacks

Upgrade to Kernel 3.19 and new X server. See [1]:

sudo apt-get install --install-recommends linux-generic-lts-vivid xserver-xorg-core-lts-vivid xserver-xorg-lts-vivid \
  xserver-xorg-video-all-lts-vivid xserver-xorg-input-all-lts-vivid libwayland-egl1-mesa-lts-vivid
Nvidia

Update to Ubuntu 16.04 Xenial

  • Again the release update breaks nvidia.
  • This time we install the default nvidia driver, no bumblebee:
sudo apt-get purge nvidia* bumblebee
sudo apt-get install nvidia-361 nvidia-prime
# reboot
glxinfo
glxgears
Old release (14.04)

Recent update broke the nvidia installation. Instead of installing back again nvidia-331, I followed Osgyan's guide (see below) to install latest nvidia drivers:

# First purge current installation
sudo apt-get remove --auto-remove bumblebee* nvidia*
sudo apt-get purge --auto-remove bumblebee* nvidia*
# Add ppa for latest nvidia drivers
sudo apt-add-repository ppa:xorg-edgers/ppa
sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt-get update
# Update current installation
sudo apt-get upgrade && sudo apt-get dist-upgrade
# Install nvidia-352
sudo apt-get install bumblebee bumblebee-nvidia primus nvidia-352
sudo gpasswd -a $USER bumblebee
#sudo systemctl enable bumblebeed     # U15.04 only - not necessary here

Then enable modules i915 and bbswitch (necessary to switch on/off the nvidia card):

sudo vi /etc/modules 
# Add the lines:
#
#   i915
#   bbswitch

Edit bumblebee configuration file:

sudo vi /etc/bumblebee/bumblebee.conf 
# Line 22:
#   Driver=nvidia
# line 55:
#   KernelDriver=nvidia-352
# line 58:
#   LibraryPath=/usr/lib/nvidia-352:/usr/lib32/nvidia-352
# line 61:
#   XorgModulePath=/usr/lib/nvidia-349/xorg,/usr/lib/xorg/modules

If not done yet, blacklist the nvidia module:

# sudo vi /etc/modprobe.d/bumblebee.conf   # Not necessary, already done
# Add the below lines to the end:
#   #349
#   blacklist nvidia-349

Reboot and check that nvidia driver is in use:

sudo apt-get install mesa-utils
primusrun glxinfo | grep OpenGL

Local

Application (package) [YYYY-MM-DD] Update
Additional configuration settings

Uninstalled

Application (package) [YYYY-MM-DD] Update
Additional configuration settings

System Settings

1st install
  • TBC
File system
  • TBC
Network
  • TBC
Preferences
  • Appearance — Look — Launcher Icon Size = 32
  • Appearance — behavior — Auto-hide the launcher
  • Appearance — behavior — Enable workspaces
  • Compiz — switcher — Disable show desktop in the switcher
Miscellaneous
  • TBC

To Do

References

# DONE
sudo apt-get install acpi           # acpi util, to access acpi info from command line
sudo vi /etc/default/grub           # GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="
sudo update-grub
sudo apt-get install bumblebee-nvidia nvidia-319 nvidia-settings-319
# Hopefully the following will fix our bluetooth issues (patch failure)
sudo vi /etc/bluetooth/main.conf    # EnableGatt = true
sudo vi /etc/modprobe.d/ath9k.conf  # options ath9k btcoex_enable=1
sudo apt-get install bluetooth
This guide explains the reasons of the whitelisting of modules i915 and bbswitch, and why the nvidia module must be blacklisted.

Issues

See Common Issues.