Ubuntu Linux Remove / Delete PPAs apt-get command

To remove or delete a Personal Package Archive (PPA) on Ubuntu Linux, you can use the following apt-get command: sudo add-apt-repository –remove ppa:<PPA_name> Replace <PPA_name> with the actual name of the PPA you want to remove. For example, to remove the ppa:webupd8team/java PPA, you would run the following command: sudo add-apt-repository –remove ppa:webupd8team/java After removing … Read more

How to enable bash command autocomplete on Alpine Linux

Bash command autocomplete can be enabled on Alpine Linux by installing the bash-completion package and adding the following line to the ~/.bashrc file: if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion fi Here are the steps to follow: Update the package list: apk update Install the bash-completion package: apk add bash-completion Add the above line … Read more

How to Check Amazon Linux Version (EC2 Instance)

To check the version of Amazon Linux installed on an EC2 instance, you can use the following command in the terminal: cat /etc/os-release This will display the version information, including the version number, in the output. For example: NAME=”Amazon Linux” VERSION=”2″ ID=”amzn” ID_LIKE=”centos rhel fedora” VERSION_ID=”2″ PRETTY_NAME=”Amazon Linux 2″ ANSI_COLOR=”0;33″ CPE_NAME=”cpe:2.3:o:amazon:amazon_linux:2″ HOME_URL=”https://amazonlinux.com/”

How to set and enable MariaDB slow query log

To enable and set up the slow query log in MariaDB, you need to modify the configuration file my.cnf and restart the MariaDB service. Here are the steps to enable the slow query log in MariaDB: Open the my.cnf configuration file: sudo nano /etc/my.cnf Add the following lines to the configuration file: [mysqld] slow_query_log = … Read more

How to set up MariaDB Master Slave replication with SSL on Ubuntu Linux

Setting up MariaDB Master-Slave replication with SSL on Ubuntu Linux involves the following steps: Install MariaDB on both the master and the slave servers. On the master server, open the MariaDB configuration file: sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf Add the following lines to the file: server-id = 1 log_bin = /var/log/mysql/mariadb-bin.log bind-address = <master_server_ip> Save and close … Read more