How to install NVIDIA Drivers in Ubuntu Linux

Probably you have tried to install NVIDIA graphics driver for Ubuntu or Linux in general so many times just like me, but never found a way how to do that properly.

Well in Ubuntu you have some 2 types of NVIDIA driver which you can find them in Additional Drivers (third party proprietary drivers) :
1. The Version 173 – which is crap especially because its very slow & laggy.
2. Recommended one – which has bugs on KDE and usually in some cases results with crashing entire OS, sometimes when trying to resize konsole in KDE. (at least that’s what happened with me)

To start with:

Ubuntu has an enabled Kernel Nouveau by default, this is what makes the NVIDIA driver always crash during installation.
So to install the drivers ofcourse you need to disable that so that you can proceed. Continue reading “How to install NVIDIA Drivers in Ubuntu Linux”

Securing SSH

The best way of Securing your server via ssh is to let connection just from ssh key.
So how we do that ?
Generate a ssh key pair on your computer

# ssh-keygen

now youll have 2 files id_rsa &
so what you have to do is change the to authorized_keys

# mv authorized_keys

Go to your server via ssh try to connect somewhere with ssh just so that you
create a .ssh folder on your home folder, or you can even do it manually than get back to your pc and:

# scp authorized_keys

You can do that also to root but anyway.
Continue reading “Securing SSH”

Edit GRUB menu easy way

I always wanted to change the look of my Grub menu, I had too many stuf there like every update I got new Boot Menu options like:

Ubuntu, with Linux 2.6.35-29-generic-pae
Ubuntu, with Linux 2.6.35-29-generic-pae (recovery mode)

and I always wanted to remove all that list and make it more simple so that
just the newest one could show on.
There are too many tutorials on web but non of them tells you the easuest way to do it as using this tool.

The tool here is called Grub costumizer and its a gui tool that helps you do that.
To install it open a terminal window and run these commands:

# sudo add-apt-repository ppa:danielrichter2007/grub-customizer
# sudo apt-get update
# sudo apt-get install grub-customizer

after the install finishes it will list in Applications>System Tools>Grub Costumizer

Continue reading “Edit GRUB menu easy way”

PHP5 GD Bundled Support Fix

When Installing Open Atrium or Drupal sometimes noification show up this :

GD Image Filtering Low Quaity/Poor Performance
GD Image Rotation Low Quaity/Poor Performance

GD Library rotate and desaturate effects

It’s not such a big deal but anyway cant stand it I want everything looking green 😛
What we have to do is recompile php5 with bundled support for GD

Lets Start: Continue reading “PHP5 GD Bundled Support Fix”

Fix SSH from disconnecting

I use ssh client a lot…Sometimes happens that it disconnects and to keep that session alive you can try this…

Global Configuration
open /etc/ssh/ssh_config file and add in the end :

ServerAliveInterval 60

Current user configuration
Do the same with  ~/.ssh/config file if you don’t have the file create it

Host *
ServerAliveInterval 60

Indent the second line with a space.

Per-host configuration
If you want to do this just for a single server then in ~/.ssh/config file type :

Host *
ServerAliveInterval 60

Thanks, hope it helps !
content : HTG

change GRUB timeout

When your system boots you will see the GRUB menu…. Usually the default timeout is (exc) 10 seconds in ubuntu, 15 sec in Fedora… so it depends on distribution, and you probably wanted to change this amount.. increase or decrease it !

Here is how you do it :
Open the /boot/grub/grub.cfg by typing this command

$ sudo gedit /boot/grub/grub.cfg

now find these lines:

if [ ${recordfail} = 1 ]; then
set timeout=-1
set timeout=15

and change the 15 or number it shows to you with the number you like to have…
save the file and exit… reboot and test it!
Thanks 🙂