Zyratastic - Ubuntu: Difference between revisions

From miki
Jump to navigation Jump to search
(Update to vivid kernel (3.19) and nvidia-352 drivers (solve black screen issue))
Line 45: Line 45:
|}
|}


|-
|'''LTS Enablement Stacks'''
|
Upgrade to Kernel 3.19 and new X server. See [https://wiki.ubuntu.com/Kernel/LTSEnablementStack]:
<source lang=bash>
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
</source>
|-
|'''Nvidia 352'''
|-
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:
<source lang=bash>
# 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
</source>
Then enable modules ''i915'' and ''bbswitch'' (necessary to switch on/off the nvidia card):
<source lang=bash>
sudo vi /etc/modules
# Add the lines:
#
# i915
# bbswitch
</source>
Edit bumblebee configuration file:
<source lang=bash>
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
</source>
If not done yet, blacklist the nvidia module:
<source lang=bash>
# sudo vi /etc/modprobe.d/bumblebee.conf # Not necessary, already done
# Add the below lines to the end:
# #349
# blacklist nvidia-349
</source>
Reboot and check that nvidia driver is in use:
<source lang=bash>
sudo apt-get install mesa-utils
primusrun glxinfo | grep OpenGL
</source>
|}
|}


Line 104: Line 162:
* Ubuntu 13.10 guide '''[http://www.noobslab.com/2013/10/tweaksthings-to-do-after-install-of.html tweak things]'''
* Ubuntu 13.10 guide '''[http://www.noobslab.com/2013/10/tweaksthings-to-do-after-install-of.html tweak things]'''
* Ubuntu 13.10 guide '''[http://www.techdrivein.com/2013/10/15-things-i-did-after-installing-ubuntu1310-saucy-salamander.html 15 things]'''
* Ubuntu 13.10 guide '''[http://www.techdrivein.com/2013/10/15-things-i-did-after-installing-ubuntu1310-saucy-salamander.html 15 things]'''
* [http://rajat-osgyan.blogspot.be/2015/05/how-to-install-latest-nvidia-driver-in.html Osgyan &mdash; How to Install the latest Nvidia Driver in Ubuntu 14.04.2/14.10/15/04 via Bumblebee]
* [http://rajat-osgyan.blogspot.in/2015/03/p-margin-bottom-0.html Osgyan &mdash; How does Bumblebee work with Optimus NVIDIA GPU]
: This guide explains the reasons of the whitelisting of modules i915 and bbswitch, and why the nvidia module must be blacklisted.


=== Issues ===
=== Issues ===

Revision as of 18:11, 14 October 2015

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

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
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 352

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.