Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
Ubuntu Linux Change Hostname (computer name)
To change the hostname (computer name) on Ubuntu Linux, follow these steps:rn rn Temporarily change the hostname: rn rnYou can temporarily change the hostname by using the following command:rn rn rn sudo hostname < new -hostname>rn rn rnReplace <new-hostname> with the desired hostname. T
macOS install Amazon AWS command-line interface (CLI) tool
To install the Amazon AWS Command Line Interface (CLI) tool on macOS, follow these steps:rn rn Install Homebrew: rn rn rn rn /bin/bash -c " $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh) " rn rn rn rn Install the AWS CLI: rn rn rn rn brew install awsclirn rn rn rn
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:rn rn Install the LXC package: rn rn rn rn sudo apt - get update rnsudo apt - get install lxcrn rn rn rn Create the container configuration file: rn rn rn rn sudo lxc-create -n <container-name> -t download -- --dis
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 ru
How to install PHP 7 on Ubuntu Linux 14.04 LTS
To install PHP 7 on Ubuntu 14.04 LTS, follow these steps:rn rn Add the repository for PHP 7: rn rn rn rn sudo apt- get install software-properties-commonrnsudo add -apt-repository ppa:ondrej/phprn rn rn rn Update the package list: rn rn rn rn sudo apt - get update rn rn rn rn Install PHP 7: rn rn rn
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:rn rn rn sudo sysctl - p rn rn rnThis will reload the kernel parameters from the /etc/sysctl.conf file and apply any changes to t
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. n Here are the steps to upgrade glibc on Ubuntu/Debian Linux: n n Update the package list: n n n n sudo ap
How to run a command or script after running apt-get command on a Debian or Ubuntu Linux
n 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: n n n n n n n n sudo apt- get install < package -name> && <path-to-script> n n n This will ins
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:rn rn Install the required packages: rn rn rn rn sudo apt- get install python3-piprn rn rn rn Upgrade pip : rn rn rn rn pip3 install --upgrade piprn rn rn rn Install pydrive : rn rn rn rn pip3 install pydrivern rn rn rn Authenticate with
How to upgrade OpenSSH 7.0 to 7.2 on a OpenBSD Unix and Linux
The steps to upgrade OpenSSH from version 7.0 to 7.2 on an OpenBSD or Linux system depend on the specific operating system and distribution you are using, as well as how OpenSSH was installed. Here's a general outline of the steps to upgrade OpenSSH on a Unix or Linux system:rn rn Check the curre
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:rn rn rn vcgencmd measure_temprn rn rnTo display the ARM CPU temperature:rn rn rn cat /sys/class/thermal/thermal_zone0/temprn rn rnThe output will
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: n n Install Nginx:n n n sudo apt - get update nsudo apt - get install nginx n n n n Install certbot, the Let’s Encrypt client:n n n sudo apt- get install certbot pyth
How to copy permissions from one file to another on Linux
You can copy the permissions from one file to another using the chmod command with the --reference option on a Linux system. The following command will copy the permissions from the file reference_file to the file target_file : n n n chmod --reference=reference_file target_file n n n This will set t
KVM libvirt assign static guest IP addresses using DHCP on the virtual machine
You can assign a static IP address to a guest virtual machine (VM) running on a KVM hypervisor using DHCP by defining a DHCP reservation for the VM's MAC address. This is usually done in the DHCP server configuration file, which varies depending on the DHCP server software you are using. Here's a
Check Debian/Ubuntu Linux package version using apt-get/aptitude command
You can use the following command to check the version of a specific package installed on a Debian or Ubuntu Linux system using the apt-get command:rn rn rn apt-cache policy package_namern rn rnAlternatively, you can use the following command to achieve the same result using the aptitude command:rn
Linux: lxc forcefully stop and kill container
You can use the following command to forcefully stop and kill a Linux container managed by LXC:rn rn rn lxc- stop -k -n container_namern rn rnThe -k option is used to kill the container, and the -n option specifies the name of the container you want to stop and kill. Note that this will abruptly ter
Unix / Linux: Remove duplicate lines from a text file using awk or perl
You can use the following command to remove duplicate lines from a text file using awk :rn rn rn awk '!seen ++' file.txt > file_without_duplicates.txtrn rn rnAlternatively, you can use the following command to achieve the same result using perl :rn rn rn perl - ne 'print unless $seen{$_}++' file.
How to gzip and keep original file on Unix or Linux command line
You can use the following command to gzip and keep the original file on a Unix or Linux command line:rn rn rn gzip - c file.txt > file.txt.gzrn rn rnThis will create a gzipped file file.txt.gz and keep the original file.txt intact. The -c option tells gzip to write the output to standard output,
How to install mysql server 5.7 on Ubuntu 16.04 LTS ( Xenial Xerus )
To install MySQL 5.7 on Ubuntu 16.04, follow these steps:rn rn Add the MySQL repository to the system: rn rn rn rn wget https://dev.mysql.com/get/mysql-apt-config_0 .8 .10 -1_ all .debrnsudo dpkg -i mysql-apt-config_0 .8 .10 -1_ all .debrn rn rn rn Update the package list: rn rn rn rn sudo apt - get
apt Command Examples for Ubuntu/Debian Linux
The apt command is a powerful package management tool for Debian-based systems such as Ubuntu and Debian Linux. Here are some common apt command examples:rn rn Update the package list: rn rn rn rn sudo apt update rn rn rn rn Upgrade installed packages: rn rn rn rn sudo apt upgradern rn rn rn Install
2,685 guides published.
