How to search – install – remove, Snap packages in Ubuntu


In this short video tutorial, we will see how to use the new Snap package manager to search and install/remove Snap packages and some useful commands.  Continue reading “How to search – install – remove, Snap packages in Ubuntu”


Ask – Find the best answer to your questions related to Ubuntu in just 1 second !!!

Ah, it’s almost 9:00 and I am still awake. I’ve been trying to figure out how great it’s the howdoi and what if I could modify the script to work along with

How it works

Just type your question (query or just a phrase) or anything like being in Google, but in terminal.

The script will search using Google to find the appropriate AskUbuntu links and throw away the rest of them. Then, it will pick up the first one (use the -n <number> parameter to specify how many answers do you want to see), browse into the code tab, grab the first top voted-reply and throw away the garbage. If you want just the links, use the -l parameter.

[button color=”green” link=””%5DDownload Ask[/button][button color=”blue” link=””%5DFork it Github[/button]

How to install CUDA 5.0 Toolkit in Ubuntu

This guide is based upon Ubuntu LTS 12.04, but same principles apply in 12.10 as well. Let’s start

1. Make sure you have a CUDA supported GPU

You must have a nVIDIA GPU that supports CUDA, otherwise you can’t program in CUDA code. Here’s a list with the CUDA supported GPU models.

2. Install NVIDIA Proprietary drivers

Either use our nVIDIA installer script or use Jockey (Additional Drivers) or just pick the driver you want from the NVIDIA official website.

3. Download CUDA Toolkit 5.0 for Ubuntu

I used the Ubuntu 11.10 32bit version (it’s the latest version so far). So please dowload.

4. Fix the error

There will be an error when you’ll try to install the CUDA 5.0 examples. The driver is trying to find the file and it doesn’t look for other versions, such as so.1, so.2 etc.

First confirm that you have a libglut file

sudo find /usr -name libglut*

if does so, symlink that file to

for 64bit

sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib/

for 32bit

sudo ln -s /usr/lib/i386-linux-gnu/ /usr/lib/


5. Install the CUDA Toolkit and Samples

Press CTRL+ALT+F1 to open a shell — yeah, we’re going to do this in old CLI way, but there’s no need to afraid the black and white terminal. After all you know what they say, one you go black…

5.1 Shutdown the all the graphics

Ubuntu uses lightdm, so you need to stop this service.

 sudo service lightdm stop

5.2 Run the installer

Go to (cd) to the directory you have the CUDA installer (a file with *.run extension) and type the following:

sudo chmod +x *.run
sudo ./*.run

Accept the Licence and Install only the CUDA 5 Toolkit and the Samples. DO NOT INSTALL the drivers because we have already done that.

6. Enable the nvcc compiler

In order to compile CUDA code you have to use the nvcc compile. In that so you have to tweak some enviroment variables into your home bashrc file.

32 bit systems –
export PATH=$PATH:/usr/local/cuda-5.0/bin
export LD_LIBRARY_PATH=/usr/local/cuda-5.0/lib

64 bit systems –
export PATH=$PATH:/usr/local/cuda-5.0/bin
export LD_LIBRARY_PATH=/usr/local/cuda-5.0/lib64:/lib


If you want to compile a CUDA file (*.cu extension) you can use the following command:

nvcc -o file

or use the NSight Eclipse Edition.

Half-Life and Counter-Strike are available for Linux

I still remember myself trying to play Counter-Strike under Linux using WINE or Cedega. A couple years later, today, somebody told me that Valve releases both titles through Linux Steam client — beta no more. All you have to do is go to Steam, search for Counter-Strike and Half-Life, purchase them, download next, and frag ‘n kill. Furthermore, there have been unconfirmed reports that, apart from Half-Life and Counter-Strike: Source, 3 more games have been released for Linux. They include Shank 2, Closure and Psychonauts.