Set DNS server address temporarily Rumi, February 24, 2020 Write it into /etc/resolv.conf: echo “nameserver 1.2.3.4″ | sudo tee /etc/resolv.conf Upon successful DHCP connection, it should be overwritten back to the “correct” DNS server. Continue Reading
Ubuntu 18.04: Disable Netplan switch back to networking /etc/network/interfaces Rumi, February 24, 2020June 17, 2020 The following procedure works for Ubuntu 18.04 (Bionic Beaver) I. Reinstall the ifupdown package: # apt-get update # apt-get install ifupdown II. Configure your /etc/network/interfaces file with configuration stanzas such as: source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback allow-hotplug enp0s3 auto enp0s3 iface enp0s3 inet static address 192.168.1.133 netmask 255.255.255.0 broadcast 192.168.1.255… Continue Reading
Disable swap in Linux Rumi, February 24, 2020 Identify configured swap devices and files with cat /proc/swaps. Turn off all swap devices and files with swapoff -a. Remove any matching reference found in /etc/fstab. Optional: Destroy any swap devices or files found in step 1 to prevent their reuse. Due to your concerns about leaking sensitive information, you… Continue Reading
Redhat / CentOS 8: text mode install guide Rumi, February 24, 2020 By default the RedHat 8 Linux installation will start in the graphical mode. In case you encounter some issues you have an option to force the text mode TTY installation. In this tutorial you will learn:How to modify GRUB boot entry to force text mode installation. Boot from the Redhat… Continue Reading
How to Enable /etc/rc.local with Systemd Rumi, February 24, 2020 If you are running a Linux distro that uses Systemd, then you may find that your command in /etc/rc.local file would not run on system boot. This guide explains how to enable /etc/rc.local script to run on system startup. Enable /etc/rc.local on Systemd If you type the following command in… Continue Reading
Debian 7 wheezy – Certbot auto started failing with ’ No module named pip.__main__’ Rumi, February 9, 2020 If you’re using Debian 7 a.k.a wheezy which is end of life at this moment and you were using Let’s Encrypt was your SSL, then you might need some backward compatibility to continue. A possible work around for me as below: wget https://raw.githubusercontent.com/certbot/certbot/75499277be6699fd5a9b884837546391950a3ec9/certbot-auto chmod +x ./certbot-auto ./certbot-auto –no-self-upgrade For renewing… Continue Reading
Install cPanel on CentOS 7 Rumi, February 1, 2020February 1, 2020 cPanel is an online Linux-based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site or email. Prerequisite: Launch a CentOS 7 instance (Only install cPanel & WHM on a freshly-installed operating system). Access the instance via SSH. Run all the… Continue Reading
Ubuntu Server 18.04 LVM out of space with improper default partitioning Rumi, February 1, 2020 Problem Statement: I installed Ubuntu Server 18.04 with the LVM option and left the default partition setup. Now my main drive only has 4GB in a 1TB hard drive. How can I fix this without starting from scratch? Results of df -h : Filesystem Size Used Available Use% Mounted on… Continue Reading
Activating File Manager in Vesta CP Rumi, January 31, 2020 If you’ve vesta control panel installed, you may want to activate file manager section of vesta control panel. Open the following file: nano /usr/local/vesta/conf/vesta.conf Add/apend the following line in the editor: FILEMANAGER_KEY=’ILOVEREO’ Save and exit. File manager is now activated. Continue Reading
Install Mariadb on CentOS 7 Rumi, January 21, 2020 MariaDB is an open-source relational database management system, backward compatible, binary drop-in replacement of MySQL. It is developed by some of the original developers of the MySQL and by many people in the community. With the release of CentOS 7, MySQL was replaced with MariaDB as the default database system…. Continue Reading