Monday, 20 October 2014

How To : Install/Upgrade to Linux Kernel 3.18-RC1 in Ubuntu/Linux Mint Systems

    The Linux Kernel 3.18-RC1 is now available for the users, announced Linus Torvalds. This Linux Kernel version comes with plenty of fixes and improvements. This article will guide you to install or upgrade to Linux Kernel 3.18-RC1 in your Ubuntu or Linux Mint system.


Installation

For 32-Bit Systems

Download the .deb packages.

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18-rc1-utopic/linux-headers-3.18.0-031800rc1_3.18.0-031800rc1.201410192135_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18-rc1-utopic/linux-headers-3.18.0-031800rc1-generic_3.18.0-031800rc1.201410192135_i386.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18-rc1-utopic/linux-image-3.18.0-031800rc1-generic_3.18.0-031800rc1.201410192135_i386.deb
Install them.

$ sudo dpkg -i linux-headers-3.18*.deb linux-image-3.18*.deb
Reboot the system.

sudo reboot

For 64-Bit Systems

Download the .deb packages.

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18-rc1-utopic/linux-headers-3.18.0-031800rc1_3.18.0-031800rc1.201410192135_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18-rc1-utopic/linux-headers-3.18.0-031800rc1-generic_3.18.0-031800rc1.201410192135_amd64.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18-rc1-utopic/linux-image-3.18.0-031800rc1-generic_3.18.0-031800rc1.201410192135_amd64.deb
Install them.

$ sudo dpkg -i linux-headers-3.18*.deb linux-image-3.18*.deb
Reboot the system.

sudo reboot

To uninstall,

sudo apt-get remove 'linux-headers-3.18*' 'linux-image-3.18*'

Wednesday, 15 October 2014

How To : Install Linux Kernel 3.17.1 in Ubuntu/Linux Mint Systems

    The Linux Kernel 3.17.1 is now available for the users, announced Linus Torvalds. This Linux Kernel version comes with plenty of fixes and improvements. This article will guide you to install or upgrade to Linux Kernel 3.17.1 in your Ubuntu or Linux Mint system.


Installation

For 32-Bit Systems

Download the .deb packages.

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17.1-utopic/linux-headers-3.17.1-031701_3.17.1-031701.201410150735_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17.1-utopic/linux-headers-3.17.1-031701-generic_3.17.1-031701.201410150735_i386.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17.1-utopic/linux-image-3.17.1-031701-generic_3.17.1-031701.201410150735_i386.deb
Install them.

$ sudo dpkg -i linux-headers-3.17.1*.deb linux-image-3.17.1*.deb
Reboot the system.

sudo reboot

For 64-Bit Systems

Download the .deb packages.

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17.1-utopic/linux-headers-3.17.1-031701_3.17.1-031701.201410150735_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17.1-utopic/linux-headers-3.17.1-031701-generic_3.17.1-031701.201410150735_amd64.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17.1-utopic/linux-image-3.17.1-031701-generic_3.17.1-031701.201410150735_amd64.deb
Install them.

$ sudo dpkg -i linux-headers-3.17.1*.deb linux-image-3.17.1*.deb
Reboot the system.

sudo reboot

To uninstall,

sudo apt-get remove 'linux-headers-3.17.1*' 'linux-image-3.17.1*'

How To : Install Linux Kernel 3.16.6 in Ubuntu/Linux Mint Systems

    The Linux Kernel 3.16.6 is now available for the users, announced Linus Torvalds. This Linux Kernel version comes with plenty of fixes and improvements. This article will guide you to install or upgrade to Linux Kernel 3.16.6 in your Ubuntu or Linux Mint system.


Installation

For 32-Bit Systems

Download the .deb packages.

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.6-utopic/linux-headers-3.16.6-031606_3.16.6-031606.201410150635_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.6-utopic/linux-headers-3.16.6-031606-generic_3.16.6-031606.201410150635_i386.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.6-utopic/linux-image-3.16.6-031606-generic_3.16.6-031606.201410150635_i386.deb
Install them.

$ sudo dpkg -i linux-headers-3.16.6*.deb linux-image-3.16.6*.deb
Reboot the system.

sudo reboot

For 64-Bit Systems

Download the .deb packages.

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.6-utopic/linux-headers-3.16.6-031606_3.16.6-031606.201410150635_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.6-utopic/linux-headers-3.16.6-031606-generic_3.16.6-031606.201410150635_amd64.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.6-utopic/linux-image-3.16.6-031606-generic_3.16.6-031606.201410150635_amd64.deb
Install them.

$ sudo dpkg -i linux-headers-3.16.6*.deb linux-image-3.16.6*.deb
Reboot the system.

sudo reboot

To uninstall,

sudo apt-get remove 'linux-headers-3.16.6*' 'linux-image-3.16.6*'

Thursday, 9 October 2014

How To : Install Linux Kernel 3.16.5 in Ubuntu/Linux Mint Systems

    The Linux Kernel 3.16.5 is now available for the users, announced Linus Torvalds. This Linux Kernel version comes with plenty of fixes and improvements. This article will guide you to install or upgrade to Linux Kernel 3.16.5 in your Ubuntu or Linux Mint system.


Installation

For 32-Bit Systems

Download the .deb packages.

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.5-utopic/linux-headers-3.16.5-031605_3.16.5-031605.201410092035_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.5-utopic/linux-headers-3.16.5-031605-generic_3.16.5-031605.201410092035_i386.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.5-utopic/linux-image-3.16.5-031605-generic_3.16.5-031605.201410092035_i386.deb
Install them.

$ sudo dpkg -i linux-headers-3.16.5*.deb linux-image-3.16.5*.deb
Reboot the system.

sudo reboot

For 64-Bit Systems

Download the .deb packages.

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.5-utopic/linux-headers-3.16.5-031605_3.16.5-031605.201410092035_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.5-utopic/linux-headers-3.16.5-031605-generic_3.16.5-031605.201410092035_amd64.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.5-utopic/linux-image-3.16.5-031605-generic_3.16.5-031605.201410092035_amd64.deb
Install them.

$ sudo dpkg -i linux-headers-3.16.5*.deb linux-image-3.16.5*.deb
Reboot the system.

sudo reboot

To uninstall,

sudo apt-get remove 'linux-headers-3.16.5*' 'linux-image-3.16.5*'

Sunday, 5 October 2014

Linux Kernel 3.17 Stable is Now Available! Install Linux Kernel 3.17 in Ubuntu/Linux Mint Systems

    The Linux Kernel 3.17-Stable is now available for the users, announced Linus Torvalds. This Linux Kernel version comes with plenty of fixes and improvements. This article will guide you to install or upgrade to Linux Kernel 3.17 in your Ubuntu or Linux Mint system.



Installation

For 32-Bit Systems

Download the .deb packages.

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17-utopic/linux-headers-3.17.0-031700_3.17.0-031700.201410060605_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17-utopic/linux-headers-3.17.0-031700-generic_3.17.0-031700.201410060605_i386.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17-utopic/linux-image-3.17.0-031700-generic_3.17.0-031700.201410060605_i386.deb
Install them.

$ sudo dpkg -i linux-headers-3.17.0*.deb linux-image-3.17.0*.deb
Reboot the system.

sudo reboot

For 64-Bit Systems

Download the .deb packages.

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17-utopic/linux-headers-3.17.0-031700_3.17.0-031700.201410060605_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17-utopic/linux-headers-3.17.0-031700-generic_3.17.0-031700.201410060605_amd64.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17-utopic/linux-image-3.17.0-031700-generic_3.17.0-031700.201410060605_amd64.deb
Install them.

$ sudo dpkg -i linux-headers-3.17.0*.deb linux-image-3.17.0*.deb
Reboot the system.

sudo reboot

To uninstall,

sudo apt-get remove linux-headers-3.17.0* linux-image-3.17.0*

How To : Install Linux Kernel 3.16.4 in Ubuntu/Linux Mint Systems

    The Linux Kernel 3.16.4 is now available for the users, announced Linus Torvalds. This Linux Kernel version comes with plenty of fixes and improvements. This article will guide you to install or upgrade to Linux Kernel 3.16.4 in your Ubuntu or Linux Mint system.


Installation

For 32-Bit Systems

Download the .deb packages.

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.4-utopic/linux-headers-3.16.4-031604_3.16.4-031604.201410051735_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.4-utopic/linux-headers-3.16.4-031604-generic_3.16.4-031604.201410051735_i386.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.4-utopic/linux-image-3.16.4-031604-generic_3.16.4-031604.201410051735_i386.deb
Install them.

$ sudo dpkg -i linux-headers-3.16.4*.deb linux-image-3.16.4*.deb
Reboot the system.

sudo reboot

For 64-Bit Systems

Download the .deb packages.

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.4-utopic/linux-headers-3.16.4-031604_3.16.4-031604.201410051735_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.4-utopic/linux-headers-3.16.4-031604-generic_3.16.4-031604.201410051735_amd64.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.4-utopic/linux-image-3.16.4-031604-generic_3.16.4-031604.201410051735_amd64.deb
Install them.

$ sudo dpkg -i linux-headers-3.16.4*.deb linux-image-3.16.4*.deb
Reboot the system.

sudo reboot

To uninstall,

sudo apt-get remove linux-headers-3.16.4* linux-image-3.16.4*

Nagios XI : Oracle Client Installation and Configuration


Step 1: NRPE Linux Agent Installation

Install nrpe agent on Target database server. Make sure that all ‘oracle’ related plugins are available in ‘/usr/local/nagios/libexec’ directory. Otherwise, download them from Nagios Exchange.

Step 2: Oracle Instant Client Installation

Create an account on ‘www.oracle.com’, navigate to ‘Downloads’ -> ‘Oracle Instant Client’. Select the proper OS version and architecture (say, Linux x86_64). Download the following files and store them in ‘/tmp’ directory:

  • oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
  • oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
  • oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm

Step 3: Download & Execute the Oracle Install Script 

sudo reboot
cd /tmp 
wget http://assets.nagios.com/downloads/general/scripts/oracleinstall.sh 
chmod +x oracleinstall.sh 
./oracleinstall.sh 
NOTE: Make sure that the Nagios Monitoring Server is connected to internet, as the script will try to download some Perl modules through CPAN.

In the end, it will display two variables, which must be saved somewhere as they will be needed later on:

ORACLE_HOME=/usr/lib/oracle/12.1/client64
LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib

Step 4: Replacing the Variables

In Nagios XI web interface, navigate to ‘Configure’ -> ‘Core Config Manager’ -> ‘Commands’.

Search for the following commands:

  • check_xi_oraclequery
  • check_xi_oracleserverspace
  • check_xi_oracletablespace
Edit them and replace the ORACLE_HOME and LD_LIBRARY_PATH variables with the values provided by oracleinstall.sh script.

Using any Oracle Wizard, start monitoring Oracle database server.

ERROR:
 

Remedy:

Install DBD::Oracle Module through CPAN as follows:

export ORACLE_HOME=<path to your Oracle which was given by the script>
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
cpan -i DBD::Oracle 
While installing above module, following error might come:

Installing on a linux, Ver#2.6
Using Oracle in /usr/lib/oracle/12.1/client64
DEFINE _SQLPLUS_RELEASE = "1201000200" (CHAR)
Oracle version 12.1.0.2 (12.1)

        Unable to locate an oracle.mk or other suitable *.mk
        file in your Oracle installation.  (I looked in
        /usr/lib/oracle/12.1/client64/rdbms/demo/demo_xe.mk /usr/lib/oracle/12.1/client64/rdbms/lib/oracle.mk /usr/lib/oracle/12.1/client64/rdbms/demo/oracle.mk /usr/lib/oracle/12.1/client64/rdbms/demo/demo_rdbms.mk /usr/lib/oracle/12.1/client64/rdbms/demo/demo_rdbms64.mk /usr/lib/oracle/12.1/client64/rdbms/lib/ins_rdbms.mk /usr/share/oracle/12.1/client64/demo.mk under /usr/lib/oracle/12.1/client64)

        The oracle.mk (or demo_rdbms.mk) file is part of the Oracle
        RDBMS product.  You need to build DBD::Oracle on a
        system which has one of these Oracle components installed.
        (Other *.mk files such as the env_*.mk files will not work.)
        Alternatively you can use Oracle Instant Client.

        In the unlikely event that a suitable *.mk file is installed
        somewhere non-standard you can specify where it is using the -m option:
                perl Makefile.PL -m /path/to/your.mk

        See the appropriate README file for your OS for more information and some alternatives.

     at Makefile.PL line 1187.
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
  PYTHIAN/DBD-Oracle-1.74.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install

In that case, you will have to download tar file from - http://search.cpan.org/~pythian/DBD-Oracle-1.74/lib/DBD/Oracle.pm

Execute following series of commands:

tar -xvzf DBD-Oracle-xx.xx.tar.gz
cd DBD-Oracle-xx.xx perl
Makefile.PL -l
make && make test
make install
Result:

$ /usr/local/nagios/libexec/check_oracle_health --connect 'xx.xx.xx.xx:1521/TESTDB2' --username 'system' --password 'system@123' --mode connection-time --warning 1 --critical 5

OK - 0.66 seconds to connect as SYSTEM | connection_time=0.6561;1;5

Monday, 29 September 2014

How To : Install/Upgrade to Linux Kernel 3.17-RC7 in Ubuntu/Linux Mint Systems

    The Linux Kernel 3.17-RC7 is now available for the users, announced Linus Torvalds. This Linux Kernel version comes with plenty of fixes and improvements. This article will guide you to install or upgrade to Linux Kernel 3.17-RC7 in your Ubuntu or Linux Mint system.


Installation

For 32-Bit Systems

Download the .deb packages.

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17-rc7-utopic/linux-headers-3.17.0-031700rc7_3.17.0-031700rc7.201409281835_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17-rc7-utopic/linux-headers-3.17.0-031700rc7-generic_3.17.0-031700rc7.201409281835_i386.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17-rc7-utopic/linux-image-3.17.0-031700rc7-generic_3.17.0-031700rc7.201409281835_i386.deb
Install them.

$ sudo dpkg -i linux-headers-3.17*.deb linux-image-3.17*.deb
Reboot the system.

sudo reboot

For 64-Bit Systems

Download the .deb packages.

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17-rc7-utopic/linux-headers-3.17.0-031700rc7_3.17.0-031700rc7.201409281835_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17-rc7-utopic/linux-headers-3.17.0-031700rc7-generic_3.17.0-031700rc7.201409281835_amd64.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17-rc7-utopic/linux-image-3.17.0-031700rc7-generic_3.17.0-031700rc7.201409281835_amd64.deb
Install them.

$ sudo dpkg -i linux-headers-3.17*.deb linux-image-3.17*.deb
Reboot the system.

sudo reboot

To uninstall,

sudo apt-get remove linux-headers-3.17* linux-image-3.17*

Wednesday, 24 September 2014

How To : Install NVIDIA 343.22 Graphics Drivers in Ubuntu/Linux Mint Systems

    The latest version of Nvidia Graphics driver for Linux which is Nvidia 343.22 has been released and is available for download. It comes with plenty of fixes and changes. This article will guide you to install Nvidia 343.22 in Ubuntu and Linux Mint systems.


Fixes

  • Added support for the following GPUs:
    • GeForce GTX 970
      GeForce GTX 980
  • Fixed a bug that prevented the "sync to vblank" setting from being honored for EGL applications.
  • Fixed a bug that could cause some OpenGL programs to encounter out of memory during a mode switch.
  • Fixed a bug that prevented the NVIDIA OpenGL driver from honoring the __GL_SHADER_DISK_CACHE_PATH environment variable.
  • Fixed a bug that caused disabled displays to be implicitly included in the target selection for some queries and assignments on the nvidia-settings command line interface, in the absence of any explicit target selection.
  • Added a new attribute to the NV-CONTROL API to query the current utilization of the video decode engine.
  • Fixed a bug where the Exchange Stereo Eyes setting in nvidia-settings didn't work in certain stereo configurations.
  • Worked around a Unigine Heaven 3.0 shader bug which could cause corruption when tessellation is enabled by implementing an application profile that uses the "GLIgnoreGLSLExtReqs" setting.  See the documentation for the __GL_IGNORE_GLSL_EXT_REQS environment variable for more details.
  • Fixed a memory leak when destroying EGL surfaces.
  • Added support for multiple simultaneous EGL displays.
  • Removed support for G8x, G9x, and GT2xx GPUs, and motherboard chipsets based on them. Ongoing support for new Linux kernels and X servers, as well as fixes for critical bugs, will be included in 340.* legacy releases through the end of 2019.
  • Fixed a bug that could cause nvidia-installer to unsuccessfully attempt to delete the directory containing precompiled kernel module interfaces, on packages prepared with --add-this-kernel.
  • Updated nvidia-installer to log uninstallation to a separate file from the installation log, and to attempt uninstalling previous driver installations using the installer program from the previous installation, when available.
 More details in the Release Notes.

Installation

Remove currently installed graphics drivers.

sudo apt-get purge nvidia*
End the graphic session with the appropriate command from the list of commands given below:

# For Ubuntu LightDM [DEFAULT]
sudo service lightdm stop

#For Gnome GDM
sudo service gdm stop

#For Linux Mint MDM
sudo service mdm stop
Download the appropriate driver from the source. Here are the download links:
Make the installer file executable.

chmod +x ~/Downloads/NVIDIA-Linux-*-343.22.run
Run the executable installer file.

sudo sh ~/Downloads/NVIDIA-Linux-*-343.22.run
This will start the installation process. Follow the on-screen instructions to complete the process.

Note : Do not delete the installer file. It will be needed while removing/uninstalling the Nvidia 343.22 driver if it fails to work properly.

To uninstall,

sudo sh ~/Downloads/NVIDIA-Linux-*-343.22.run --uninstall

    Total Pageviews