Proxmox change from local-lvm to local storage Rumi, August 30, 2019 First remove the existing LVM-Thin: lvremove pve/data Then create an normal lvm on existing group. For example: lvcreate -L 755.96G -n data pve Format it: mkfs.ext4 /dev/pve/data Mount it in the fstab. The mount target must be empty, so delete everything in there. /dev/pve/data /var/lib/vz ext4 defaults 0 2 rm… Continue Reading
Installing NTP Service and change timezone in CentOS 6 / CentOS 7 Rumi, August 30, 2019 Let’s install NTP service first: yum install ntp Configure NTP services by updating the following section (only if appropriate): nano /etc/ntp.conf And by commenting on the sections: # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). #server 0.centos.pool.ntp.org iburst #server 1.centos.pool.ntp.org iburst #server 2.centos.pool.ntp.org… Continue Reading
Install and integrate DKIM with OpenDKIM and Postfix on a CentOS 6 Rumi, August 24, 2019February 4, 2024 UPDATE THE SYSTEM Before going any further, make sure you’re in a screen session and your system is fully up-to-date by running: ## screen -U -S opendkim-screen ## yum update ENABLE EPEL REPOSITORY OpenDKIM is available in the EPEL repository, so we need to enable it on the system before… Continue Reading
Nginx Reverse Proxying Multiple Domains Using map Module Rumi, August 24, 2019 map_hash_bucket_size 128; map $http_host $backend_servers { hostnames; default www.example.com; frontend.example2.com backend.example2.com frontend.example3.com backend.example3.com www.example.org backend.example.org } proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; server { location / { proxy_pass http://$backend_servers } } Continue Reading
Install PHP 7.3, 7.2, 7.1 on CentOS/RHEL 6.10 Rumi, August 24, 2019 Configure Yum Repository First of all, you need to enable Remi and EPEL yum repositories on your system. Use the following command to install EPEL repository on your CentOS and Red Hat 7/6 systems Use this command to install epel-release yum repository yum install epel-release and now execute one of… Continue Reading
Apache Virtual Hosts on CentOS Rumi, August 24, 2019 Step One— Create a New Directory The first step in creating a virtual host is to a create a directory where we will keep the new website’s information. This location will be your Document Root in the Apache virtual configuration file later on. By adding a -p to the line… Continue Reading
Find Out NFS Clients Connected To My NFS Server Rumi, August 19, 2019 You can use the following commands. SSH or login into your nfs server and type the following command: netstat -an | grep nfs.server.ip:port If your nfs server IP address 192.168.1.12 and port is 2049, enter: netstat -an | grep 192.168.1.12:2049 Sample outputs: tcp 0 0 192.168.1.12:2049 192.168.1.5:757 ESTABLISHED tcp 0 0 192.168.1.12:2049… Continue Reading
Install webmin on centos 6 Rumi, August 8, 2019 Step 1 » Create a new file webmin.repo in /etc/yum.d/ and add the below code. [Webmin] name=Webmin Distribution Neutral #baseurl=http://download.webmin.com/download/yum mirrorlist=http://download.webmin.com/download/yum/mirrorlist enabled=1 Step 2 » Install webmin GPG key using below command. Continue Reading
How to Change Hostname on Ubuntu 18.04 Rumi, August 6, 2019 Display the Current Hostname To view the current hostname, enter the following command: hostnamectl As you can see in the image above, the current hostname is set to ubuntu1804.localdomain. Change the Hostname The following steps outline how to change the hostname in Ubuntu 18.04. 1. Change the hostname using hostnamectl… Continue Reading
Split large file and combine file in Linux Rumi, August 6, 2019August 6, 2019 $ du -h Linux\ Security.mp4 Sample output: 1.1G Linux Security.mp4 As you see, the video file size is 1.1 GiB, which is very large to upload to my google drive. Even though, Google Drive lets users upload files up to 5TB in size, it is really time consuming process. With my low speed Internet… Continue Reading