How to find out the connected interface using linux command Rumi, October 26, 2020 Method 1 To find out the connected state of a network cable in Linux, just run: $ cat /sys/class/net/enp5s0/carrier Sample output: 1 If you got output as “1” (Number one), It means that the network cable is connected with the network card. Also, you can do this with the following command too:… Continue Reading
Install LAMP on CentOS 7 with PHP 5.4/7.0/7.1/7.2/7.3/7.4 Rumi, October 26, 2020 Preliminary Note In this tutorial, I use the hostname server1.example.com with the IP p 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate. I will add the EPEL repo here to install latest phpMyAdmin as follows: rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY* yum -y install epel-release To edit files on… Continue Reading
Enable mod_rewrite for Apache on CentOS 7 Rumi, October 25, 2020 The mod_rewrite module is enabled by default on CentOS 7. If you find it is not enabled on your server, you can enable it by editing 00-base.conf file located in /etc/httpd/conf.modules.d/ directory. sudo nano /etc/httpd/conf.modules.d/00-base.conf Add or uncomment the following line: LoadModule rewrite_module modules/mod_rewrite.so Save and close the file, then… Continue Reading
Add Static Route on specific interface from Windows OS Rumi, October 6, 2020 Find out the Interface ID on which you need to apply your static route- netsh interface ipv4 show interfaces It’ll look something similar below- And now apply your static route- route add 172.16.222.0 mask 255.255.255.0 172.16.221.193 IF 20 Continue Reading
Remove Node from Proxmox Cluster Rumi, September 9, 2020 Step 1 : Migrate all VMs to another active node Migrate all VMs to another active node. You can use the live migration feature if you have a shared storage or offline migration if you only have local storage. Step 2 : Display all active nodes Display all active nodes in… Continue Reading
Permanently add Static Route in Linux Rumi, September 4, 2020September 4, 2020 Static routing is the process of manually entering the routes to the routing table to reach a particular destination. Basically two commands are used in Linux to add routes. The first command is the old traditional route add and second is the IP route command. Earlier we learned how to… Continue Reading
Revoking Lets Encrypt Certificate properly Rumi, August 14, 2020 When you want to learn how to revoke Let’s Encrypt SSL/TLS certificates, follow the steps below: Step 1: Validate Certificate file Before you revoke a certificate, you’ll want to validate that the correct certificates and key file you’re revoking.. since there is no reversal.. Once a certificate is revoked, it… Continue Reading
Fix Proxmox (PVE) “can’t lock file ‘/var/lock/qemu-server/lock-xxx.conf’ – got timeout” (Proxmox can’t shutdown/stop virtual machine) (Proxmox kill/force stop virtual machine) Rumi, August 14, 2020 The Issue When trying to “Stop” or “Shutdown” virtual machine from Proxmox (PVE) web gui, the “Cluster log” shows end task UPID:pve:xxxxxxxx:xxxxxxxx:xxxxxxx:qmstop:xxx:root@pam: can’t lock file ‘/var/lock/qemu-server/lock-xxx.conf’ -got timeout end task UPID:pve:xxxxxxxx:xxxxxxxx:xxxxxxx:qmreboot:xxx:root@pam: VM quit/powerdown failed The Fix We can manually delete the lock from following path /run/lock/qemu-server # The file will… Continue Reading
Easyengine installaiton on Debian 10 Rumi, August 13, 2020 Install Easyengine WordPress on a Debian 10 VM (mine was a KVM). The following procedure will install EE with following components; Docker WordPress Core MariaDB Nginx Server PHP-FPM Redis Cache Let’s encrypt SSL Install EasyEngine on Linux wget -qO ee rt.cx/ee4 && sudo bash ee ee site create your_domain –type=wp… Continue Reading
Install Mysql Client on Debian 10 (Buster) Rumi, August 6, 2020 Debian stopped packaging mysql-client as of buster. You can use apt-get install default-mysql-client Which will install mariadb-client-10.3. MariaDB is a fork of MySQL. The client can still be started with the command mysql. Continue Reading