How to create unprivileged LXC container on Ubuntu Linux 14.04 LTS

To create an unprivileged LXC container on Ubuntu 14.04 LTS, follow these steps: Install the LXC package: sudo apt-get update sudo apt-get install lxc Create the container configuration file: sudo lxc-create -n <container-name> -t download — –dist ubuntu –release trusty –arch amd64 This will create a container based on Ubuntu 14.04 LTS (trusty) with the … Read more

Ubuntu add-apt-repository command not found error and solution

The error “add-apt-repository: command not found” occurs because the add-apt-repository command is part of the software-properties-common package, which is not installed by default on some Ubuntu distributions. To resolve the error, you need to install the software-properties-common package by running the following command: sudo apt-get update sudo apt-get install software-properties-common After installing the package, the … Read more

How to install PHP 7 on Ubuntu Linux 14.04 LTS

To install PHP 7 on Ubuntu 14.04 LTS, follow these steps: Add the repository for PHP 7: sudo apt-get install software-properties-common sudo add-apt-repository ppa:ondrej/php Update the package list: sudo apt-get update Install PHP 7: sudo apt-get install php7.0 This will install the latest version of PHP 7 available in the repository. You can also install … Read more

How to reload sysctl.conf variables on Linux

The sysctl command is used to modify kernel parameters at runtime in Linux. To reload the variables defined in the sysctl.conf file, you need to run the following command: sudo sysctl -p This will reload the kernel parameters from the /etc/sysctl.conf file and apply any changes to the current running system. If the sysctl.conf file … Read more

How To Patch and Protect Linux Glibc Getaddrinfo Stack-based Buffer Overflow Zero Day Vulnerability CVE-2015-7547 and CVE-2015-5229

To patch and protect against the Linux Glibc Getaddrinfo Stack-based Buffer Overflow vulnerability (CVE-2015-7547 and CVE-2015-5229), you need to upgrade the glibc package to the fixed version. Here are the steps to upgrade glibc on Ubuntu/Debian Linux: Update the package list: sudo apt-get update Upgrade glibc: sudo apt-get upgrade libc6 On Red Hat/CentOS Linux, you … Read more

How to run a command or script after running apt-get command on a Debian or Ubuntu Linux

You can run a command or script after apt-get by using the && operator. For example, if you want to install a package and then run a script, you can run the following command: sudo apt-get install <package-name> && <path-to-script> This will install the package, and if the installation is successful, it will run the … Read more

How to install python3 pydrive on Ubuntu / Debian Linux (Google Drive API Python wrapper library)

To install pydrive on Ubuntu/Debian Linux, follow these steps: Install the required packages: sudo apt-get install python3-pip Upgrade pip: pip3 install –upgrade pip Install pydrive: pip3 install pydrive Authenticate with Google Drive API: To authenticate with the Google Drive API, you need to create a project in the Google Developers Console and obtain the necessary … Read more

How to find out Raspberry Pi GPU and ARM CPU temperature on Linux

You can find out the temperature of the GPU and ARM CPU on a Raspberry Pi running Linux by using the vcgencmd command. To display the GPU temperature: vcgencmd measure_temp To display the ARM CPU temperature: cat /sys/class/thermal/thermal_zone0/temp The output will be in Celsius. To convert to Fahrenheit, multiply the temperature by 9/5, and add … Read more

How to configure Nginx with Let’s Encrypt on Debian/Ubuntu Linux

Here’s a high-level overview of the steps to configure Nginx with Let’s Encrypt on a Debian or Ubuntu Linux system: Install Nginx: sudo apt-get update sudo apt-get install nginx Install certbot, the Let’s Encrypt client: sudo apt-get install certbot python3-certbot-nginx Obtain an SSL certificate for your domain: sudo certbot –nginx -d example.com -d www.example.com Replace … Read more