How to update Debian or Ubuntu Linux containers (lxc) VM

To update a Debian or Ubuntu Linux container (LXC) virtual machine, you can use the following steps: Log in to the container: lxc exec container-name bash Update the package list: sudo apt-get update Upgrade all installed packages: sudo apt-get upgrade Upgrade the distribution to the latest version: sudo apt-get dist-upgrade Remove any unused packages: sudo … Read more

How To Find the WiFi Password on Mac OS X

To find the WiFi password on Mac OS X, follow these steps: Open the Keychain Access application, which can be found in the Applications > Utilities folder. Search for the network name in the search bar and select the network from the list. Right-click (or Control-click) on the network name and select “Get Info”. In … Read more

Debian 8 and Ubuntu 14.04 LTS Install Suhosin PHP Extension To Protect Your Server

To install the Suhosin PHP extension on Debian 8 and Ubuntu 14.04 LTS, you need to perform the following steps: Add the PPA repository for Suhosin: sudo add-apt-repository ppa:ondrej/php Update the package list: sudo apt-get update Install the Suhosin extension: sudo apt-get install php-suhosin Restart the Apache web server: sudo service apache2 restart Verify the … Read more

How To: Temporarily Clear Bash Environment Variables on a Linux and Unix-like System

You can temporarily clear environment variables in the Bash shell on a Linux or Unix-like system by using the following command: env -i bash –norc –noprofile This will start a new instance of the Bash shell with a clean environment, without any environment variables set. The -i option specifies that the environment should be cleared, … Read more

How To Ubuntu Linux Firewall Open Port Command

In Ubuntu, you can use the ufw (Uncomplicated Firewall) tool to open a specific port. Here’s how: Install ufw if it’s not already installed: sudo apt-get update sudo apt-get install ufw Enable the firewall: sudo ufw enable Allow incoming traffic on the desired port: sudo ufw allow port_number Replace port_number with the actual port number … Read more

How to make a folder in Linux or Unix

To make a folder (also known as a directory) in Linux or Unix, use the mkdir command. For example: mkdir folder_name This will create a new folder named folder_name in the current working directory. You can also specify the path where you want to create the folder. For example: mkdir /path/to/folder_name Note: Replace folder_name and … Read more