Zyratastic - Ubuntu: Difference between revisions

From miki
Jump to navigation Jump to search
No edit summary
 
(34 intermediate revisions by the same user not shown)
Line 4: Line 4:
== Configuration Files ==
== Configuration Files ==
All configuration files can be found [[{{PAGENAME}} - Files|here]].
All configuration files can be found [[{{PAGENAME}} - Files|here]].

== Repositories ==
To be completed.


== Installed Applications ==
== Installed Applications ==
Line 16: Line 13:
{| class="install_simple_log"
{| class="install_simple_log"
|-
|-
|'''Metacity''' (<tt>metacity</tt>)||
|'''Application''' (<tt>package</tt>)||<small>[YYYY-MM-DD]</small> Update<br/>Additional configuration settings
* To replace ''compiz'' when running games
|-
|'''Oracle JDK 7''' (<tt>oracle-java7-installer</tt>, repo ''webupd8team'')||See [[Linux_Software#Oracle / Sun Java]]
|-
|'''ack-grep''' (<tt>ack-grep</tt>)||
|-
|'''acpi''' (<tt>acpi</tt>)||
|-
|'''nvidia''' (<tt>bumblebee-nvidia nvidia-331 nvidia-settings-331</tt>)||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''' (<tt>unity-tweak-tool</tt>)||from ''Software Center''
|-
|'''skype''' (<tt>skype</tt>)||
|-
|'''SSH''' (<tt>ssh</tt>)||
Enable GNOME Keyring at startup such that SSH key is cached at login. In ''Startup Application'', create launcher:
{|
|-
|Name||SSH Key Agent
|-
|Command||<code>/usr/bin/gnome-keyring-daemon --start --components=ssh</code>
|-
|Comment||GNOME Keyring: SSH Agent
|}

|-
|'''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'''
|
'''Update to Ubuntu 16.04 Xenial'''
* Again the release update breaks nvidia.
* This time we install the default nvidia driver, no bumblebee:
<source lang=bash>
sudo apt-get purge nvidia* bumblebee
sudo apt-get install nvidia-361 nvidia-prime
# reboot
glxinfo
glxgears
</source>
;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:
<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>
|}
|}


=== Local Applications ===
=== Local ===


{| class="install_simple_log"
{| class="install_simple_log"
Line 33: Line 131:
|}
|}


== Simple Settings ==
== System Settings ==
* [<tt>YYYY-MM-DD</tt>] - SETTING


{| class="install_simple_log"
== Detailed System Settings ==
|-
=== 1st install ===
|1st install||
* INSTALL LOG
* TBC

|-
=== File System ===
|File system||
* To be completed
* TBC

|-
=== Network ===
|Network||
* To be completed
* TBC

|-
=== Preferences ===
|Preferences||
* To be completed
* '''Appearance''' &mdash; Look &mdash; Launcher Icon Size = 32

* '''Appearance''' &mdash; behavior &mdash; Auto-hide the launcher
=== Users ===
* '''Appearance''' &mdash; behavior &mdash; Enable workspaces
To be completed
* '''Compiz''' &mdash; switcher &mdash; Disable show desktop in the switcher
|-
|Miscellaneous||
* TBC
|}


== To Do ==
== To Do ==
=== References ===
* Install guide '''[https://help.ubuntu.com/community/AsusZenbookPrime AsusZenbookPrime]'''
* Install guide '''[https://wiki.debian.org/InstallingDebianOn/Asus/N750JV/Jessie N750JV]'''
* Install guide '''[http://5thpeephole.blogspot.be/2013/10/install-ubuntu-1310-in-asus-n550jv.html N550JV]'''
<source lang=bash>
# 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
</source>
* Google query "''ubuntu asus n550jv''"
* Ubuntu 13.10 guide '''[http://smiuchin.wordpress.com/2013/10/16/top-things-to-do-after-installing-ubuntu-13-10-saucy-salamander/ top 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]'''
* [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 ===
See [[Common Issues]].
<ul>
<li> '''{{red|Issue}}''' — Fn-F2 WLAN / Bluetooth switch does not work.</li>
<li> '''{{red|Issue}}''' — Fn-F5 and Fn-F6 for screen brightness do not work.</li>
* Add <code>acpi_osi='!Windows 2012'</code> to ''/etc/default/grub'' (see [https://help.ubuntu.com/community/AsusZenbookPrime])
:&rarr; Fn-F5/F6 still do not work, but Fn-F2 does work now!!!
* See also [https://bbs.archlinux.org/viewtopic.php?id=147804], [https://bugs.freedesktop.org/show_bug.cgi?id=45452], [http://msdn.microsoft.com/en-us/library/windows/hardware/jj159305.aspx new win8 brightness control].
<li> '''{{red|Issue}}''' — NVidia GT750M card not detected.</li>
* Install [https://launchpad.net/~xorg-edgers/+archive/ppa xorg-edgers] (see [http://ubuntuforums.org/showthread.php?t=2189994])
sudo apt-add-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-331 nvidia-settings-331 nvidia-prime
* Reboot. Multiple issues from ''apport'' (&rarr; disabled now)
* Nvidia card works with accelerated OpenGL, but keyboard is stuck to US layout, and Bluetooth is lost. Fonts are not rendered as usual it seems.
* Purge xorg-edgers to see if we can revert back to previous situation:
sudo ppa-purge xorg-edgers
sudo apt-get autoremove nvidia-prime

<li> '''{{red|Issue}}''' — '''Minecraft''' &mdash; Graphics glitches, missing limbs on intel card.</li>
* ('''NOK''') Changing settings: Graphics: Fast / Fancy, View Bobbing: ON / OFF: Advanced OpenGL: OFF/Fast/Fancy
* ('''NOK''') Tried these VM, and they have glitches: OpenJDK 7 64, Oracle JDK 7 64.
* ('''NOK''') From [http://www.mpgh.net/forum/422-minecraft-tutorials/716970-optifine-ubuntu-linux.html].
** Run MC with <code>-Xmx512M</code>
** Run in fullscreen
** OpenGL / Multicore settings: Smooth FPS: On, Load Far: Off, Chunk UpF: 2, Lazy CL: On, Smooth World: On, Preload Chunks: Off, Dynamic Updates: On
** Setting priority of process ''java'' to ''high'' (aka <code>sudo -k nice -n -5 su -c "..." -USER</code>, see [http://askubuntu.com/questions/178491/nice-command-without-root-privileges])
* ('''NOK''') Disable ''compiz'' before launching minecraft (see [http://ubuntuforums.org/showthread.php?t=1741768])
sudo apt-get install metacity
metacity --replace && ./launch-minecraft-now && unity --replace &
* ({{green|'''OK'''}}) Disable '''OptiFine'''
* '''TODO''' &mdash; More solution from google query "''optifine missing limbs''" &mdash;
<li> '''{{red|Issue}}''' — Image really dark
* Use <code>xrandr</code> (see [http://askubuntu.com/questions/371630/change-contrast-gamma-in-external-monitor]):
xrandr --output eDP1 --gamma 1.4:1.4:1.4
xrandr --verbose
* '''Q?''' &mdash; How to make that settings permanent (setting is lost after quit / restart)?
** I could make a custom script per seat, that is run right before launching minecraft.
<li> '''{{red|To Do}}''' — '''Minecraft''' &mdash; Do we get more FPS if we disable compiz (or any compositor, like ''metacity'')?</li>
<li> '''{{red|To Do}}''' — '''Bluetooth''' &mdash; Bluetooth no longer working, even with nvidia disabled</li>
sudo modprobe -r aht3k; sleep 1; sudo modprobe ath3k # Seems to work
<li> '''{{red|To Do}}''' — Check BIOS version and upgrade if necessary (see [http://support.asus.com/download.aspx?SLanguage=en&p=3&s=529&m=N550JV&os=&hashedid=dad5aYI8mC6sfoNV])</li>
* We have version '''204'''. Updated to version '''207'''
<li> '''{{red|To Do}}''' — Check install guides: [https://help.ubuntu.com/community/AsusZenbookPrime], </li>
</ul>

=== Done & Fixed ===
* '''{{green|Fixed}}''' — Issue description<br/>Fix description
* '''{{green|Done}}''' — Description

Latest revision as of 21:36, 5 September 2016

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.