Install libjpegtran by using yum command in CentOS 6.x
|

Install libjpegtran by using yum command in CentOS 6.x

In this tutorial we will learn,how to install libjpegtran by using yum command in CentOS 6.x. The libjpegtran is mainly used for optimizing the jpeg and jpg format files.This utility compress an image without losing the quality of file. If you are running a website which has lots of jpeg/jpg file, which may take time…

Recover Linux Grub Password in linux rescue mode CentOS/Red Hat
|

Recover Linux Grub Password in linux rescue mode CentOS/Red Hat

In this tutorial we will learn,recover Linux Grub Password in linux rescue mode CentOS/Red Hat.We are doing this practical with scenario,in case we forgot root as well as grub password.The method will help you to recover linux grub boot loader password. Requirement: We prefer to use bootable CentOS/Red Hat CD/DVD/USB which is used for installing…

Set GRUB password after installation of CentOS/Red Hat
|

Set GRUB password after installation of CentOS/Red Hat

In this tutorial we will learn about how to set GRUB password after installation in Red Hat based Operating System. In our last post,we have described about how to reset root password in single user mode. If our system does not have grub password set, anyone can reset root password after booting the system in…

How to reset forgot root password in CentOS 6.x and Redhat 6.x

How to reset forgot root password in CentOS 6.x and Redhat 6.x

In this practical we will learn,how to reset forgot root password in CentOS 6.x and Redhat 6.x. We are doing this practical in CentOS 6.x and it is also applicable to Red Hat 6.x.To reset the root password we will boot the linux system in Runlevel 1 also known as single user mode. Note: The…

How to add/install Ubuntu fonts in CentOS/Red Hat Linux
|

How to add/install Ubuntu fonts in CentOS/Red Hat Linux

Introduction In this tutorial we will learn, how to add/install Ubuntu fonts in CentOS/Red Hat Linux. The Ubuntu fonts are very popular in typography. The Ubuntu fonts are funded by Canonical . Its wonderful design work and implementation has been taken care by Dalton Maag . To know more about Ubuntu Fonts, here is the…

convert space into new line using sed command

convert space into new line using sed command

convert space into new line using sed command In this sed command trick we will learn how to convert space into new line.For more understanding we will take an example. In file called test we have written colour names with spaces.Now we will convert the space into new line. Syntax: sed ‘s/s/n/g’ file_name example is…

postgres database backup  script using database user password inside
|

postgres database backup script using database user password inside

Postgresql is open source object-relational database system and it is also widely use likewise mysql database system. If you are familiar with mysql you must be aware that in single line you can pass the password of mysql user for eg. mysql -u root -p password. But in postgresql it is not like that. Solution:…

How to zip directory in linux explained with examples
|

How to zip directory in linux explained with examples

Zip is command in linux is used for compressing files and directory.In this post we will learn how to zip the directory or folder in linux. To compress directory use the below given format zip -r give-file-name.zip Directory-name example: root@tuxworld:/opt# ls -ld teamviewer8/ drwxr-xr-x 6 root root 4096 Oct 2 08:43 teamviewer8/ root@tuxworld:/opt# zip -r…

How to hide php version information in header

How to hide php version information in header

While migrating from godaddy account to new server which is hosted in DigitalOcean,I checked the header by using command curl -I https://sharadchhetri.com . In output of command ,I found PHP version was given.For security point of view I want to hide or disable this information. For this you have to do small change in php.ini…

Forward all incoming emails to other SMTP server or gateway
|

Forward all incoming emails to other SMTP server or gateway

In this post we will learn how to forward all emails of particular domain to another SMTP server or gateway. I also used this method in different scenario. Scenario: I have my own mail server which can host multiple virtual domains and users (postfix+mysql). Now a client has domain called example.com and for mailing he…

How to install pam_mysql in CentOS or Red Hat

How to install pam_mysql in CentOS or Red Hat

How to install pam_mysql in CentOS or Red Hat While working on some mysql authentication.I required pam_mysql. In CentOS 6.4 I found it was not available even in CentOS 5 it was not also. Again same method is applied. Download the EPEL repo. Step 1: Install latest EPEL Repo rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm Step 2: Now…