Linux / UNIX List User Dot-Files

User dot-files are hidden files in a user’s home directory that start with a dot (e.g. .bashrc, .profile). To list these files for a particular user in Linux/Unix, you can use the following command: ls -a /home/username/.* Replace username with the actual username for the user whose dot-files you want to list. Alternatively, you can … Read more

RedHat / Centos Disable IPv6 Networking

To disable IPv6 networking on RedHat/CentOS, you need to modify the network configuration file. Here are the steps: Open the /etc/sysctl.conf file with a text editor: sudo vi /etc/sysctl.conf Add the following lines at the end of the file: net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 Save and close the file. To apply the changes, run … Read more

CentOS / RHEL IPv6 ip6tables Firewall Configuration

To configure the ip6tables firewall in CentOS/RHEL to allow IPv6 traffic, you can follow these steps: Check the current ip6tables rules by running the following command: sudo ip6tables -L -n This will display the current rules in the ip6tables firewall. Allow inbound and outbound traffic on the loopback interface by running the following commands: sudo … Read more

Firefox: Add a Trusted CA

To add a trusted Certificate Authority (CA) to Firefox, you can follow these steps: First, obtain the root CA certificate from the organization or website you want to trust. This may be provided in a variety of formats, such as a .crt file or a URL. In Firefox, click on the “Menu” button (three horizontal … Read more

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