How to Backup Master Boot Record (MBR) Using Linux dd Command
MBR Backup
[root@testsvr01~]# dd if=/dev/sda1 of=/opt/mbr_backup bs=512 count=1
0+1 records in
0+1 records out
115 bytes (115 B) copied, 0.0001912 s, 601 kB/s
[root@testsvr01~]#
Topics Based on Linux related articles
MBR Backup
[root@testsvr01~]# dd if=/dev/sda1 of=/opt/mbr_backup bs=512 count=1
0+1 records in
0+1 records out
115 bytes (115 B) copied, 0.0001912 s, 601 kB/s
[root@testsvr01~]#
[root@testsvr01~]# rpm -q kernel
kernel-3.10.0-1160.15.2.el7.x86_64
kernel-3.10.0-1160.21.1.el7.x86_64
kernel-3.10.0-1160.24.1.el7.x86_64
kernel-3.10.0-1160.36.2.el7.x86_64
kernel-3.10.0-1160.71.1.el7.x86_64
[root@ehapp01 ~]# package-cleanup --oldkernels --count=1
Loaded plugins: fastestmirror, langpacks
--> Running transaction check
---> Package kernel.x86_64 0:3.10.0-1160.15.2.el7 will be erased
---> Package kernel.x86_64 0:3.10.0-1160.21.1.el7 will be erased
[root@testsvr01~]# df -Th | grep "^/dev"
/dev/mapper/rhel-root xfs 50G 8.8G 42G 18% /
/dev/vda1 xfs 497M 199M 299M 40% /boot
/dev/mapper/rhel-home xfs 46G 8.9G 37G 20% /home
[root@testsvr01~]#
[root@testsvr01~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
[root@testsvr01~]# yum install docker-ce
Retrieving key from https://download.docker.com/linux/centos/gpg
Importing GPG key 0x621E9F35:
Userid : "Docker Release (CE rpm) <docker@docker.com>"
Fingerprint: 060a 61c9 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35
From : https://download.docker.com/linux/centos/gpg
Is this ok [y/N]: y
Running transaction check
Running transaction test
[root@testdbsvr01~]# dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
[root@testdbsvr01~]# dnf -qy module disable postgresql
[root@testdbsvr01~]# dnf install -y postgresql12-server
[root@testdbsvr01~]# dnf install -y postgresql12-contrib
[root@testdbsvr01~]# /usr/pgsql-12/bin/postgresql-12-setup initdb
Initializing database ... OK
[root@testsvr01~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 60G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 59G 0 part
├─rhel-root 253:0 0 35.6G 0 lvm /
├─rhel-swap 253:1 0 6G 0 lvm [SWAP]
└─rhel-home 253:2 0 17.4G 0 lvm /home
sdb 8:16 0 250G 0 disk
sdc 8:32 0 250G 0 disk
[root@testsvr01 ~]# yum module list nginx
[root@pythonsvr01 ~]# vi /etc/systemd/system/flaskapp.service
[Unit]
Description=Flask Python Application Container
After=network.target
[Service]
Type=idle
Environment=CONFIGURATION_SETUP=config.ProductionConfig
Environment=FLASK_ENV=production
ExecStart=/bin/bash -c '/usr/bin/python3.6 /opt/flaskapp/app.py'
ExecStop=/bin/kill -15 $MAINPID
This step should have been completed upon the installation of Drupal 8 for getting PHPMailer function
Install Composer
# curl -sS https://getcomposer.org/installer | php
Move Composer binary to usr bin path
# mv composer.phar /usr/bin/composer
Check Composer Version
# composer --version
Go to Drupal root Directory and execute
Drupal Installation Directory - /var/www/html
[root@testsvr01 ~]# yum module list php