Thursday 31 August 2017

Grep Temp Password from MySQL

As of now for latest MySQL version there is a default password. To get this password tail mysql.log file and restart MySQL instance, and you will found MySQL temporary password.

              grep 'temporary password' /var/log/mysqld.log

Restart MySQL instance

# /etc/init.d/mysqld restart

OR

# /etc/init.d/mysql restart

Your Boot Partition is on a Disk Using GTP

1. At the partitioning screen, press Ctrl + Alt + F2 to get to a shell prompt.

2. Overwrite the GPT partition label with an MSDOS label.

[root@host ~]# parted /dev/sda -s mklabel msdos

3. Press Ctrl + Alt + F6 to return to the partitioning screen, and continue installation, it may be needed to back one step up in order for the installer to see the new changes.

Root Cause
  • The GRand Unifed Bootloader (GRUB) is not compiled with the ability to utilize GPT partitions in RHEL5.
  • The MSDOS partition label will allow GRUB to boot correctly, but has a physical limitation of 2 TB.
  • This above error was a check added in RHEL 5.2.
  • In 5.0 and 5.1, the installation would continue but the ending install will not boot.
#Source- RHEL

Install RPM From Linux CD

1- Create a directory for you local repository, e.g.
/home/user/repo
.
2- Move the RPMs into that directory.
3-Fix some ownership and file system permissions:
# chown -R root.root /home/user/repo
4- Install the createrepo package if not installed yet, and run
# createrepo /home/user/repo
# chmod -R o-w+r /home/user/repo
5- Create a repository configuration file, e.g. /etc/yum.repos.d/myrepo.repo containing
[local]
name=My Awesome Repo
baseurl=file:///home/user/repo
enabled=1
gpgcheck=0
6- Install your package using
# yum install packagename

Enable 'HTML Manager'- Apache Tomcat

 Enable 'HTML Manager'- Apache Tomcat Go to Apache-tomcat's home directory and edit the tomcat-users.xml ${apache_home}/conf/tom...