Categories
Linux

How to Check CUDA Version on Ubuntu 18.04

Here you will learn how to check CUDA version on Ubuntu 18.04. The 3 methods are NVIDIA driver’s nvidia-smi, CUDA toolkit’s nvcc, and simply checking a file. Prerequisite Before we start, you should have installed NVIDIA driver on your system as well as Nvidia CUDA toolkit. Method 1 — Use nvidia-smi from Nvidia Linux driver […]

Categories
Linux

How to Check CUDA Version Easily

Here you will learn how to check NVIDIA CUDA version in 3 ways: nvcc from CUDA toolkit, nvidia-smi from NVIDIA driver, and simply checking a file. Using one of these methods, you will be able to see the CUDA version regardless the software you are using, such as PyTorch, TensorFlow, conda (Miniconda/Anaconda) or inside docker. […]

Categories
Linux

How to install Docker on Ubuntu 20.04

It’s easy to install Docker on Ubuntu 20.04 and only needs 5 steps. In this tutorial, you will also learn how to add Docker key, set up Docker’s repository on Ubuntu 20.04. Docker is an open framework to build, launch, and run applications. Installing Docker helps you to isolate your software from the underlying hardware, and […]

Categories
Linux

How to cut videos with ffmpeg properly

If you are using Ubuntu 18.04 or 20.04, you might want to use ffmpeg to cut your video that is too long and you are only interested in a part of it for a presentation or sent it to a friend or Reddit. ffmpeg is a versatile tool that can virtually do anything with videos […]

Categories
Linux

How to install Nvidia driver on Ubuntu 14.04 with newer Linux Kernel

You might be stuck with Ubuntu 14.04, which, at the time of writing (May 2020), has reached end-of-life and only receive security updates. You might also have a new computer with an Nvidia GPU like GeForce GTX 1070 and a newer Intel wireless card like , The chances are that you might already install newer […]

Categories
Python Linux

How to Install Miniconda on Ubuntu 20.04

What is Miniconda? Miniconda is a minimal free Conda installer. It’s a thin, bootstrap version that contains just conda, Python, the packages they depend on, and a limited range of other helpful modules like pip, zlib, and a few others. To install additional conda packages from Anaconda registry, using the conda install command. Installing Miniconda […]

Categories
Nginx Linux

How to Update Nginx MIME Types in 2 Steps

Nginx can recognize different content types through a predefined MIME type list. Your Nginx MIME types might be outdated if you install Nginx using your system package system, e.g., apt install nginx on Ubuntu/Debian or yum on CentOS. Using apt or yum to install packages are very easy and, more importantly, you will get security […]

Categories
Linux

How to check if a cron job ran

After a cron job is created or added by a software package such Debian, it is better to double-check if the cron job is actually scheduled and ran. Because cron is a daemon to execute scheduled commands, you will need to check the log output. Where is the cron log? Unlike most other software, cron […]

Categories
Nginx Linux

How to enable Nginx HTTPS on Raspbian (Raspberry PI)

HTTPS, the secure version of HTTP, becomes mandatory for websites/apps. HTTPS certificate used to cost money, but now it’s free thanks to Let’s Encrypt. Enables HTTPS is very simple as well. It only takes 2 steps. Note that this post also applies to Ubuntu and Debian. Install certbot certbot is the commandline tool for Let’s […]

Categories
Linux

How to remove ppa and all packages

ppa-purge is the tool you want. It removes a PPA and downgrades all the packages to official Ubuntu or Debian versions. Install ppa-purge Remove a ppa & its packages: Don’t forget to replace owner/repo with yours.