Manual Installation of Grub2 Boatloader

GRUB2 is the latest version of GNU GRUB, the GRand Unified Bootloader. A bootloader is the first software program that runs when a computer starts. It is responsible for loading and transferring control to the operating system kernel.

Normally, GRUB2 will be installed and set up by the installer, Anaconda, during the installation process. You will probably never have to deal with manual installation of GRUB2. However, in certain situations , you will want to install GRUB2 manually, especially if you need to repair the existing GRUB2 installation or you want to change its configuration.

This procedure shows the steps to install GRUB2 on your Master Boot Record (MBR) of your primary hard disk.

1. Install grub2
# yum -y install grub2

2. Create a configuration file for GRUB2.
# grub2-mkconfig -o /boot/grub2/grub.cfg

3. List block devices available on the system. Identify the primary hard disk. Usually, it is the sda device.
# lsblk

4. Install GRUB2 in the MBR of the primary hard disk.
# grub2-install /dev/sda

5. Reboot your computer to boot with the newly installed bootloader.

OpenVZ Cheatsheet

:: VPS Creation Walkthrough ::

Create VPS from template:
vzctl create id --ostemplate osname

Set VPS to boot on host startup:
vzctl set id --onboot yes --save

Start VPS for further configuration:
vzctl start id

Set VPS hostname:
vzctl set id --hostname host.domain.com --save
Read the rest of this entry »

Disable Menu Remote Mysql di cPanel

Umumnya ketika koneksi remote mysql dinonaktifkan, di cpanel masih muncul menu remote mysql. Untuk mendisable menu Remote MySQL, asumsi menggunakan theme paper_lantern, silakan edit file /usr/local/cpanel/base/frontend/paper_lantern/dynamicui/dynamicui_hide_icon.conf
tambahkan item
file=>remote_mysql,skipobj=>1