Skip to content

Instantly share code, notes, and snippets.

View codedeep79's full-sized avatar

Nguyễn Trung Hậu codedeep79

View GitHub Profile
@codedeep79
codedeep79 / Cài đặt Opera trên Ubuntu.md
Created August 6, 2022 10:55
Cài đặt Opera trên Ubuntu

Open your terminal and import the Opera repository’s GPG key using the following wget command:

wget -qO- https://deb.opera.com/archive.key | sudo apt-key add -

Next, add the Opera APT repository to your system’s software repository list:

echo deb https://deb.opera.com/opera-stable/ stable non-free | sudo tee /etc/apt/sources.list.d/opera.list

Once the repository is enabled, update the packages list and install the opera-stable package:

@codedeep79
codedeep79 / Cài đặt OpenCV trên Ubuntu 20.04.md
Created August 6, 2022 10:49
Cài đặt OpenCV trên Ubuntu 20.04

Installing OpenCV from the Ubuntu Repository

OpenCV is available for installation from the default Ubuntu 20.04 repositories. To install it run:

sudo apt update
sudo apt install libopencv-dev python3-opencv

Verify the installation by importing the cv2 module and printing the OpenCV version:

python3 -c "import cv2; print(cv2.__version__)"
@codedeep79
codedeep79 / Cài đặt TeamViewer trên Ubuntu 20.04.md
Created August 6, 2022 10:34
Cài đặt TeamViewer trên Ubuntu 20.04

Open your terminal and download the latest TeamViewer .deb package using the following wget command:

wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb

Once the download is complete, install TeamViewer by running:

sudo apt install ./teamviewer_amd64.deb
@codedeep79
codedeep79 / Cài đặt Mono trên Ubuntu 20.04.md
Created August 6, 2022 10:31
Cài đặt Mono trên Ubuntu 20.04

Install the dependencies necessary to add a new repository over HTTPS:

sudo apt update
sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common

Import the repository’s GPG key:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

Add the Mono repository to your system sources’ list:

@codedeep79
codedeep79 / Cài đặt Spotify trên Ubuntu 20.04.md
Created August 6, 2022 10:28
Cài đặt Spotify trên Ubuntu 20.04

Import the repository’s GPG key:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 4773BD5E130D1D45

Add the Spotify APT repository to your system’s software repository list:

echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list

Once the repository is enabled, update apt sources and install Spotify:

@codedeep79
codedeep79 / Cài đặt Skype trên Ubuntu 20.04.md
Created August 6, 2022 10:25
Cài đặt Skype trên Ubuntu 20.04

Open your terminal and download the latest Skype .deb package using the following wget command:

wget https://go.skype.com/skypeforlinux-64.deb

Once the download is complete, install Skype by running the following command as a user with sudo privileges :

sudo apt install ./skypeforlinux-64.deb
@codedeep79
codedeep79 / Cài đặt VirtualBox trên Ubuntu.md
Last active August 7, 2022 08:41
Cài đặt VirtualBox trên Ubuntu

At the time of writing this article, the latest version of VirtualBox is version 6.1.x. To install VirtualBox from the Oracle repositories, follow these steps:

  • Import the Oracle public keys using the following commands:
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

  • Add the VirtualBox APT repository to your system:
echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | \
@codedeep79
codedeep79 / Install Debian 11 on VMware Workstation.md
Last active August 6, 2022 05:05
Install Debian 11 on VMware Workstation

Create the Debian 11 virtual machine

Debian is one of the stable Linux distributions out there. Unlike other distros, you won’t be getting frequent upgrades on the Debian operating system. However, when it does, it will be a very stable one.

Open the Vmware workstation, and click on Create a new virtual machine. You can alternatively press CTRL+N to create the new virtual machine.

The new virtual machine creation wizard will open. To get more control over the Debian virtual machine installation, we will choose the Custom option and click on Next.

Click on Next

@codedeep79
codedeep79 / Cài đặt PHP (8.1, 7.4 or 5.6) trên Ubuntu 22.04.md
Created August 6, 2022 02:31
Cài đặt PHP (8.1, 7.4 or 5.6) trên Ubuntu 22.04

Install few dependencies required by this tutorial with the below-mentioned command:

sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https 

Add the Ondrej PPA to your system, which contains all versions of PHP packages for the Ubuntu systems

LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php

Now, update the Apt package manager cache

@codedeep79
codedeep79 / Cài đặt PHP 7.4 trên Ubuntu 20.04 | 18.04 | 16.04.md
Last active August 6, 2022 02:19
Cài đặt PHP 7.4 trên Ubuntu 20.04 | 18.04 | 16.04

Step 1: Add PHP PPA Repository

We’ll add ppa:ondrej/php PPA repository which has the latest build packages of PHP

sudo apt-get update
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update

Step 2: Install PHP 7.4

Install PHP 7.4 on Ubuntu 20.04/18.04/16.04 using the command: