How To Setup OpenVZ under RHEL / CentOS Linux

OpenVZ is a container-based virtualization solution that allows you to create and manage multiple virtual environments on a single physical server. Here are the steps to set up OpenVZ under RHEL / CentOS Linux: Install the OpenVZ kernel and tools: # yum install vzkernel vzctl vzquota Edit the /etc/sysctl.conf file and add the following lines … Read more

Is Open Source Software Legal To Use For My Business?

Yes, open source software is legal to use for your business. In fact, many businesses and organizations use open source software as a cost-effective alternative to proprietary software. Open source software is generally distributed under a license that allows users to use, modify, and distribute the software freely. However, it’s important to note that not … Read more

UNIX Get An Alert When Disk Is Full

To get an alert when a disk is full on a UNIX system, you can set up a disk space monitoring script that periodically checks the disk usage and sends an email alert when the disk usage exceeds a certain threshold. Here’s an example script that you can modify to suit your needs: #!/bin/bash # … Read more

Adobe Photoshop Alternatives For Linux Desktop

While Adobe Photoshop is not natively available for Linux, there are several open-source and commercial alternatives that you can use for image editing and manipulation on Linux desktop. Here are some popular options: GIMP – GNU Image Manipulation Program – a free and open-source image editor that provides a wide range of features, including layers, … Read more

How To Use awk In Bash Scripting

awk is a powerful text processing tool that can be used in Bash scripting to perform various tasks, such as extracting and manipulating data from text files. Here are some basic steps to use awk in Bash scripting: Create a Bash script file with a shebang at the beginning to specify the interpreter: #!/bin/bash Use … Read more

Samba: Allow Domain Controllers Create Machine Trust Accounts On-the-Fly

By default, Samba does not allow domain controllers to create machine trust accounts on-the-fly. However, you can configure Samba to allow domain controllers to create machine trust accounts on-the-fly by following these steps: Edit the Samba configuration file smb.conf: sudo nano /etc/samba/smb.conf Add the following lines to the [global] section of the file: allow dns … Read more

Linux Disable / Remove All NFS Services

To disable or remove all NFS (Network File System) services on a Linux machine, you can follow these steps: Check if NFS services are currently running: sudo systemctl status nfs-server sudo systemctl status nfs-lock sudo systemctl status nfs-idmap Stop and disable the services: sudo systemctl stop nfs-server sudo systemctl disable nfs-server sudo systemctl stop nfs-lock … Read more

DenyHosts: Remove / Delete an IP address

If you need to remove or delete an IP address from the DenyHosts blacklist, you can follow these steps: Log in to your server as root. Open the DenyHosts configuration file using a text editor: vi /etc/hosts.deny Locate the line that contains the IP address you want to remove. Delete the line that contains the … Read more