How To Install pfSense Firewall On a Hard Disk Drive With Serial Console Support On the Soekris net5501 Router

Here are the steps to install pfSense firewall on a hard disk drive with serial console support on the Soekris net5501 router: Download the pfSense ISO file from the official website. Burn the ISO file to a CD. Connect the Soekris router to a computer with a serial cable. Configure the serial terminal software on … Read more

How to Prevent & Disable Mac OS X From Sleeping From the Command Line Terminal Application

To prevent and disable Mac OS X from sleeping from the Command Line Terminal application, you can use the caffeinate command. Here’s how to use caffeinate: Open the Terminal application. Run the following command to prevent the system from sleeping indefinitely: caffeinate To prevent the system from sleeping for a specific duration, you can use … Read more

How To: Restart Apple Mac OS X Airport Networking From the Bash Terminal

You can restart the Wi-Fi network in Apple Mac OS X from the Terminal by using the airport command. Here’s how: Open the Terminal application. Turn off Wi-Fi: sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z Turn on Wi-Fi: sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I Note: The airport command may not be present on all versions of Mac OS X. If it’s not … Read more

How To Install Google Chrome On a RHEL/CentOS 7/8 and Fedora Linux 34 Using Yum Command

Here are the steps to install Google Chrome on a RHEL/CentOS 7/8 and Fedora 34 system using the yum command: Add the Google Chrome repository to the system: sudo tee /etc/yum.repos.d/google-chrome.repo <<EOF [google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64 enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub EOF Install Google Chrome: sudo yum install google-chrome-stable Launch Google Chrome: google-chrome Note: Before installing Google Chrome, … Read more

How to find out information about a LXC (Linux container) CPU & Memory Usage

To find information about CPU and memory usage of a Linux Container (LXC), you can use the following commands: CPU usage: lxc-info -n <container_name> | grep ‘CPU use’ This will show you the percentage of CPU utilization by the container. Memory usage: lxc-info -n <container_name> | grep ‘Memory use’ This will show you the amount … Read more

How To Install ncurses Library on a Linux

The ncurses library can be installed on a Linux system using the package manager. Here are the steps to install ncurses on different distributions: On Debian and Ubuntu: sudo apt-get update sudo apt-get install libncurses5-dev On Fedora, CentOS, and Red Hat: sudo yum update sudo yum install ncurses-devel On Arch Linux: sudo pacman -Sy sudo … Read more

How to Compile and Install Linux Kernel v4.9.11 Source On a Debian / Ubuntu Linux

Here are the steps to compile and install the Linux kernel version 4.9.11 on a Debian or Ubuntu system: Download the Linux kernel source code: wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.11.tar.xz Extract the source code: tar -xvf linux-4.9.11.tar.xz Change to the extracted source code directory: cd linux-4.9.11 Copy the configuration from your current running kernel: cp /boot/config-`uname -r` .config … Read more

Btrfs Filesystem /etc/fstab Entry To Mount It Automatically At Linux System Startup

To mount a Btrfs file system automatically at system startup using the /etc/fstab file, you need to add an entry for the file system in the following format: UUID=<UUID of the Btrfs file system> <mount point> btrfs defaults,subvol=<subvolume name> 0 0 Here, replace <UUID of the Btrfs file system> with the unique identifier of the … Read more

Google Compute Engine scp Files on a Linux or Unix or Mac OS X

To use scp to copy files to or from a Google Compute Engine instance: Open a terminal window. Use the following format to copy a file from your local machine to the instance: scp [LOCAL_FILE_PATH] [USERNAME]@[INSTANCE_IP_ADDRESS]:[REMOTE_FILE_PATH] Use the following format to copy a file from the instance to your local machine: scp [USERNAME]@[INSTANCE_IP_ADDRESS]:[REMOTE_FILE_PATH] [LOCAL_FILE_PATH] Note: … Read more

How To Build and Install the Latest Version of btrfs-tools on Linux

To build and install the latest version of btrfs-tools on a Linux system, you need to follow these steps: Download the latest version of the source code: wget https://github.com/kdave/btrfs-progs/archive/master.zip unzip master.zip Install the necessary build dependencies: sudo apt-get install build-essential libncurses5-dev libncursesw5-dev zlib1g-dev liblzo2-dev The specific dependencies may vary based on your distribution. Change to … Read more