Disable GNOME Automounting

To disable GNOME automounting in Linux, you can use the following steps: Open the GNOME configuration editor by running the command gconf-editor in the terminal. Navigate to the following key: /desktop/gnome/volume_manager. Uncheck the automount and automount_open options. Close the configuration editor. This will disable GNOME automounting for all users. If you want to disable it … Read more

Linux / UNIX Automatically Logout BASH / TCSH / SSH Users After a Period of Inactivity

On Linux/UNIX systems, you can configure the shell or SSH server to automatically log out users after a period of inactivity using the TMOUT environment variable. To automatically log out users after a period of inactivity, you can set the TMOUT variable in the user’s shell configuration file. For example, to set the timeout to … Read more

UNIX Cat All Files In A Directory

To concatenate all files in a directory using the cat command on a UNIX system, you can use a wildcard character to match all files in the directory, then redirect the output to a new file. The command would look something like this: cat /path/to/directory/* > combined_file.txt This command will concatenate all files in the … Read more

SSH Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys2

The error message “Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys2” indicates that there is a problem with the permissions of the authorized_keys file on the server. To fix this error, you need to adjust the ownership and permissions of the authorized_keys file. Follow these steps: Connect to the server via SSH using your … Read more

Redhat / CentOS: ImageMagick Installation command

To install ImageMagick on Redhat and CentOS systems, follow these steps: Open a terminal window. Update the package list: sudo yum update Install ImageMagick: sudo yum install ImageMagick Verify the installation by checking the version of ImageMagick: convert -version This should print the version of ImageMagick that is installed on your system. That’s it! You … Read more

Debian Linux Install GNU GCC Compiler and Development Environment

To install the GNU GCC compiler and development environment on Debian Linux, follow these steps: Open a terminal window. Update the package list: sudo apt-get update Install the GCC compiler and development environment: sudo apt-get install build-essential This will install the basic GCC tools, such as gcc, g++, and make, as well as some essential … Read more

Linux Disable Core Dumps

A core dump is a file that contains the memory image of a process when it crashes. By default, core dumps are enabled on most Linux distributions. However, in some cases, you may want to disable core dumps to save disk space or to prevent sensitive data from being written to disk. Here’s how to … Read more