Showing posts with label graphics. Show all posts
Showing posts with label graphics. Show all posts

Tuesday, September 19, 2017

Ubuntu Kubuntu Install upstream open source graphics drivers

Ubuntu Kubuntu Install upstream open source graphics drivers


Ubuntu comes with stable version of open source GPU drivers for providing support for various GPUs from different vendors (AMD, nVIDIA, Intel, S3 ...). But, since open source drivers are updated continuously from different contributors, it is sometimes useful to try upstream version of drivers. Any upstream drivers are regarded as unstable yet they provide new functionally and bug fixes.

Oibaf provides upstream drivers for various Ubuntu versions through Personal Package Archive (PPA). PPA is an online software repository system for Ubuntu Linux. One can install package (software) from PPA repository to local system by adding PPA address to Ubuntu software sources list.


Now, lets install upstream GPU drivers from Oibaf PPA on the Kubuntu (Ubuntu with KDE plasma desktop environment).


Open up terminal application

Kickoff -> Applications -> System -> Konsole

Add ppa:oibaf/graphics-drivers (PPA address) to system

Put the following in the terminal: sudo apt-add-repository ppa:oibaf/graphics-drivers [Press enter key]. Here sudo command gives permission to make changes to the system, apt-add-repository command adds a ppa address to the system.

Then the following will show up for confirmation

Just press enter key to confirm.

Now, update the systems software repository by putting the following command in the terminal:


sudo apt-get update


Thats it, now you can download the drivers from Oibaf PPA repository. To accomplish that, you have to upgrade the system by putting the following command in the terminal:


sudo apt-get -y upgrade


Wait for a while for all the processes to be finished in the terminal. if everything is finished type exit and press enter key to exit from the terminal window.


One last thing, open source drivers need texture compressions library. Texture compression library is a requirement for many modern 3D games and software. Texture compression library comes separately from open source drivers and one has to compile them from the source to install them. However, To install texture compression library onto Ubuntu simply download the pre-compiled libraries.


follow this for running executable files on Ubuntu

http://onthim.blogspot.com/2014/12/run-executable-files-on-ubuntu-linux.html


Pre-compiled texture compression library for Ubuntu variant distributions


http://onthim.blogspot.com.au/p/onthim-downloads.html


Now, Install precompiled library


Open Home folder (suppose I have download the file in home folder)

Kickoff -> Computer -> Home

Extract the downloaded file

Right click on the tc*.tar.gz file -> Extract -> Extract Archive here Autodetect Subfolder

Install

navigate to recently created tc folder and open the Setup.sh file (make sure it is executable and the file managers runs it).

Thats it, now you have upstream drivers!

download file now

Read more »

Friday, September 8, 2017

Ubuntu Graphics Session Fix after botched Kernel Upgrade

Ubuntu Graphics Session Fix after botched Kernel Upgrade


Overview
This post is about restoring graphics to your Linux Desktop session if you install some kernel updates that dont go so well. Particularly, ones that fail with your graphics drivers.

Quick Steps
If you get error message (when trying to upgrade kernel packages or kernel drivers): "Skipping (driver build) at this time because kernel-source is missing." Try the following steps:

Note: `uname -r` is a commandline option which will auto-substitute your kernel version and architecture into the install command. If installing via a GUI, just use the info output from running the console command `uname -r`.
sudo apt-get install linux-source-`uname -r` linux-headers-`uname -r`
If this does not automatically cause your nvidia drivers to compile, cause a manual install with:
sudo apt-get install nvidia-current
If that still doesnt work, try uninstalling and reinstalling nvidia-current.


Background
Today I noticed there were some kernel updates in Ubuntu, but they had been kept back. So I decided to manually install them, since they did not appear to be causing any package conflicts. I do updates from command line with apt-get (because Im awesome that way *wink*). While installing the held-back packages, being kernel updates, it tried to accommodate my Nvidia graphics drivers.

Apparently, this failed. I noticed the error on the console, and immediately downgraded my kernel back to the previous versions. But alas, it did no good. I rebooted and was confronted with a text-only machine. Now, Im fine with this, since I spend a lot of time on console. (Screen, vim, ssh, and elinks are usually all I need for most rescue operations. Sometimes rtorrent, wget, and curl are handy too.)

After trying to get the packages to jive well together, I gave up trying to juggle the kernel packages and instead focused on the Nvidia drivers. I tried installing the nvidia-current package provided by the Ubuntu repositories. (I was running a later version from a PPA.). This failed, but triggered the same error.

"Skipping (driver build) at this time because kernel-source is missing." Now, Ive seen this error before. So I quickly installed the linux-source-`uname -r` package. This did not quite do the trick, and I have been around long enough to know that the source-packages often require the header packages as well. So I install linux-headers-`uname -r` package.

Once installed that, I didnt even have to do anything. The system automatically compiled the missing nvidia drivers and installed them for me. A quick reboot later, and now I am blogging about this simple solution.

download file now

Read more »