gedit: Add Python / C++ Autocomplete Support

By default, the gedit text editor in Ubuntu or other Linux distributions may not have built-in support for Python or C++ code autocompletion. However, you can easily add this functionality by installing appropriate plugins. Here are the steps to add Python/C++ autocomplete support in gedit: Open a terminal window and run the following command to … Read more

FreeBSD Upgrade Perl 5.8.x to 5.10.x

Upgrading Perl on FreeBSD is a relatively straightforward process. Here are the steps to upgrade Perl 5.8.x to 5.10.x: Make sure your ports tree is up-to-date by running the following command: portsnap fetch update Remove the existing Perl installation: pkg_delete -f perl-5.8.* Install the new version of Perl from the ports collection: cd /usr/ports/lang/perl5.10 make … Read more

CentOS / RedHat: Set Password Quality Requirements

In CentOS and Red Hat, you can set password quality requirements using the pwquality module. This module is used by the PAM (Pluggable Authentication Modules) system to enforce password quality policies. Here are the steps to set password quality requirements: Install the libpwquality package if it is not already installed: sudo yum install libpwquality Open … Read more

Gnome Find Drive Serial Number

In GNOME, you can find the serial number of a drive using the Disks utility. Here are the steps: Open the Disks utility by clicking on the Applications menu and searching for “Disks”. In the Disks window, select the drive you want to find the serial number for from the list of drives on the … Read more

Linux / UNIX: Restrict Access To A Given Command

In Linux and UNIX, you can restrict access to a given command using file permissions and ownership, as well as the sudo and chroot commands. Here are some methods to restrict access to a given command: File permissions and ownership: You can set the file permissions and ownership of the command’s binary executable file to … Read more

Samba: Linux Iptables Firewall Configuration

Samba is a popular open-source implementation of the SMB/CIFS protocol, which allows file and printer sharing between different operating systems. If you are running Samba on a Linux server, you may want to configure your iptables firewall to allow Samba traffic. Here are the steps to configure iptables for Samba: Open the iptables configuration file … Read more