Change default runlevel in CentOS 7 / RHEL 7 | GUI | NON-GUI

Hello All,

As systemd is already implemented in CentOS 7 and RHEL 7, Method has been changed to change runlevel in Red Hat Enterprise Linux and CentOS 7. So sharing method to change runlevel in CentOS and RHEL 7

 

CentOS / RHEL 7
CentOS / RHEL 7

Please perform following simple steps to change runlevel from GUI to NON-GUI and NON-GUI to GUI.

1. Execute following command to check current runlevel settings.

[root@tejasbarot ~]# systemctl get-default

1.1 If current setting is graphical.target then Linux will boot in GUI Mode.
1.2 If current setting is multi-user.target then Linux will boot in NON-GUI Mode.

2. Execute following command to Change from GUI to NON-GUI Mode.

[root@tejasbarot ~]# systemctl set-default multi-user.target
[root@tejasbarot ~]# reboot

3. Execute following command to Change from NON-GUI to GUI Mode.

[root@tejasbarot ~]# systemctl set-default graphical.target
[root@tejasbarot ~]# reboot

Hope it will helps you.

Enjoy Linux 🙂 Enjoy Open Source 🙂

If you like this then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

Please Keep in Touch with Social Networking :- 

Facebook Page :- https://www.facebook.com/AllLinuxUsersBlog

RHEL 7 / CentOS 7 / Grub2 : Protect Single User Mode / Rescue / Emergency with Password

Hello All,

As we all know Red Hat Enterprise Linux 7 and CentOS 7 Linux is out now, Recently I have posted How to enter into Single User Mode / Rescue / Emergency Mode on RHEL 7 / CentOS 7.

This post is to Secure Single User Mode / Rescue Mode / Emergency mode on RHEL 7 / CentOS 7 in Grub2, By performing this Article you will able to secure your Grub2 Edits with Username and Password, It is always a good idea to protect your Grub2.

In This Howto, We will protect Grub2 with Encrypted Password and Plain Password.

To Follow this how to make sure you have root password to make changes in Grub2, Please make sure you are doing exact as per instructions and going through notes.

Do this on your own risk, You will be the only responsible if anything goes wrong in any case 🙂

 

CentOS7_Grub2
CentOS7_Grub2

 

Protect Grub2 with Plain Password Method

1. Login as a root user or user with rights to edit grub2 configuration file (sudo).

[tejas-barot@rhel-centos7-tejas-barot-linux ~]$ su -

2. Make a backup of existing grub.cfg and default /etc/grub.d/10_linux so if anything goes wrong we can always restore it.

[root@rhel-centos7-tejas-barot-linux ~]# cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.orig
[root@rhel-centos7-tejas-barot-linux ~]# cp /etc/grub.d/10_linux /etc/grub.d/10_linux.orig

3. Now, Adding Entries to protect Grub2 with username and password:

Note1: Replace Username and Password from below lines and Add below lines at last in file /etc/grub.d/10_linux

Note2: Make sure you don’t insert following entries multiple time.

[root@rhel-centos7-tejas-barot-linux ~]# vi /etc/grub.d/10_linux
cat << EOF
set superusers="tejasbarot" password tejasbarot alub@123
EOF

4. Now let us Generate New grub.cfg, Execute following command.

[root@rhel-centos7-tejas-barot-linux ~]# grub2-mkconfig --output=/tmp/grub2.cfg

5. Now Replace this New configured grub2.cfg with existing grub2.cfg

[root@rhel-centos7-tejas-barot-linux ~]# mv /boot/grub2/grub.cfg /boot/grub2/grub.cfg.move
[root@rhel-centos7-tejas-barot-linux ~]# mv /tmp/grub2.cfg /boot/grub2/grub.cfg

6. That’s It, Now You can reboot and Press “e” on Grub Menu, It will ask you for the password.

Protect Grub2 with Password Encrypted Method

1. Login as a root user or user with rights to edit grub2 configuration file (sudo).

[tejas-barot@rhel-centos7-tejas-barot-linux ~]$ su -

2. Make a backup of existing grub.cfg and default /etc/grub.d/10_linux so if anything goes wrong we can always restore it.

[root@rhel-centos7-tejas-barot-linux ~]# cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.orig
[root@rhel-centos7-tejas-barot-linux ~]# cp /etc/grub.d/10_linux /etc/grub.d/10_linux.orig

3. Let’s Generate Encrypted password with “grub2-mkpasswd-pbkdf2”, Once you will execute below command it will ask you for the password, Please enter password twice, It will generate password string which you need to add to 10_linux file. ( Shortened version of string, You will have to paste complete string )

[root@rhel-centos7-tejas-barot-linux ~]# grub2-mkpasswd-pbkdf2
Enter Password:
Reenter Password:
PBKDF2 hash of your password is grub.pbkdf2.sha512.10000.F1C4CFAA5A51EED123BE8238C23B25B2A6909AFC9812F0D45

4. Now, Adding Entries to protect Grub2 with username and password:

Note1: Replace Username and Password from below lines and Add below lines at last in file /etc/grub.d/10_linux

Note2: Make sure you don’t insert following entries multiple time.

Note3: Here I have added Short String for example, you will have to add full string to make it work.

[root@rhel-centos7-tejas-barot-linux ~]# vi /etc/grub.d/10_linux
cat << EOF
set superusers="tejasbarot" password_pbkdf2 tejasbarot grub.pbkdf2.sha512.10000.F1C4CFAA5A51EED123BE8238C23B25B2A6909AFC9812F0D45
EOF

5. Now let us Generate New grub.cfg, Execute following command.

[root@rhel-centos7-tejas-barot-linux ~]# grub2-mkconfig --output=/tmp/grub2.cfg

6. Now Replace this New configured grub2.cfg with existing grub2.cfg

[root@rhel-centos7-tejas-barot-linux ~]# mv /boot/grub2/grub.cfg /boot/grub2/grub.cfg.move
[root@rhel-centos7-tejas-barot-linux ~]# mv /tmp/grub2.cfg /boot/grub2/grub.cfg

7. That’s It, Now You can reboot and Press “e” on Grub Menu, It will ask you for the password.

Enjoy Protected Grub2 🙂 Enjoy CentOS 7 🙂 Enjoy RHEL 7 🙂 Enjoy Linux 🙂 Enjoy Open Source 🙂

Please Keep in Touch with Social Networking :- 
Facebook Page :- https://www.facebook.com/AllLinuxUsersBlog

What Is The Relationship Between CentOS, RHEL, and Fedora?

Hello All,

Thanks a Lot to Nicky Helmkamp from InterWorx for contribution to All Linux User’s Blog.

This article submitted by Nicky Helmkamp using http://www.tejasbarot.com/submit-an-article/ . 

While there are a large number of RPM-based distributions available, three are more prominent than the others and are more likely to be considered for server operating systems: CentOS, Red Hat Enterprise Linux, and Fedora. Each of these operating systems is related to the others and they are in many ways similar, but the differences between them are worth understanding if you want to choose the most reliable and secure option for your web server.
We’re going to have a quick look at how each of these distributions came into being, what their intended use cases are, and whether they are a good choice for a server operating system.

Linux Logos
Linux Logos

Fedora

Fedora is a community-supported distribution owned by Red Hat, one of the most successful of the enterprise-focused open source software companies.
Fedora is important because it is the upstream distribution for both CentOS and Red Hat Enterprise Linux. However, Fedora is significantly different from both of its downstream offspring, because, while it is a fully functional operating system and certainly can be used as either a server or a desktop system, one of its major purposes is as a testbed for future versions of Red Hat Enterprise Linux.
For server operating systems, stability and predictability are important. Because Fedora includes cutting-edge largely untested software and because it has a very short development and support cycle, it tends to change significantly and frequently. Fedora usually has a new major update every 6 months and each release is supported for a maximum of 18 months. It is a great desktop operating system, because users get the newest software versions soon after they are released, but its volatility causes it to be less suitable for enterprise applications and servers. For those developing enterprise applications, Fedora’s constantly shifting APIs and short lifespan make it less than ideal.

Red Hat Enterprise Linux

RHEL is Red Hat’s official distribution, and all of the Red Hat support services, service level agreements, and certification programs are based on it. RHEL is intended to be an enterprise-grade, stable, and secure OS. It is much less subject to change than Fedora, with major versions having a normal support cycle length of 7 years with an option to extend that to 10 years.
Although Red Hat Enterprise Linux is open source, and all of the source code is made available by Red Hat, it is not free to use because the main reason a company would choose RHEL for their servers is because of the support services offered by Red Hat. As you might imagine, those support services are not free and cost anything from a few hundred dollars to many thousands of dollars.
If you are looking for a stable enterprise-grade server distribution with an excellent support package and service-level agreement, RHEL is an excellent choice, but if you have prefer to buy support from a different vendor or use in-house support, CentOS is the better option.

CentOS

CentOS is a binary compatible community-developed “clone” of RHEL. It’s basically Red Hat Enterprise Linux without the support services and branding and with some very minor configuration differences. CentOS is more or less a free drop-in replacement for RHEL.
CentOS also comes with the same long support lifecycles as RHEL, with the most recent version, CentOS 6, being supported up until the end of 2020.
CentOS does tend to lag a little behind RHEL with releases: for minor releases that may be hours or days and for major releases it can be several months, but for companies that think in terms of multiple year lifespans for their servers and software, the difference is trivial.
Which Should You Choose?
If you don’t care about long-term support and stability, Fedora is a perfectly fine option. If that is an issue and you also want to use Red Hat’s support services, then RHEL is your best bet. If you need an enterprise-grade platform that will be supported for many years without the cost of Red Hat’s support packages, then CentOS is the best option.

You can also submit your articles like Nicky Helmkamp.

All Linux User’s Blog Mobile Applications :- http://www.tejasbarot.com/download-mobile-apps/

Please Keep in Touch with Social Networking :- 

Facebook Page :- https://www.facebook.com/AllLinuxUsersBlog

Enjoy Linux 🙂 Enjoy Open Source 🙂

Mount / Access NTFS Filesystem / Partition on RHEL / CentOS 6.x

Hello,

Getting Error for NTFS File System on RHEL / CentOS ?

Unable to mount Partition

Error mounting: mount: unknown filesystem type ‘ntfs’

NTFS on CentOS 6
NTFS on CentOS 6

In ENT Linux like RHEL and CentOS there are no packages installed by default to access or Mount NTFS Partition, I have already share the same kind of article way behind for RHEL 5.x.

I am Sharing how to, So By Following this you will able to Mount / Access NTFS Partitions / FileSystem on Red Hat Enterprise Linux 6.x and CentOS 6.x

NTFS 3g
NTFS 3g

It is very simple and Basic to Install NTFS Modules on both Linux, Almost Same method is used for the CentOS and RHEL 6.x.

Only Few Packages which needs to be Installed and You are done.

1. Execute Below Command to Install and Configure EPEL Repository 

[root@tejas-barot-linux-support-ahmedabad ~]# wget http://epel.mirror.net.in/epel/6/i386/epel-release-6-8.noarch.rpm

[root@tejas-barot-linux-support-ahmedabad ~]# rpm -Uvh epel-release-6-8.noarch.rpm

2. Execute Below Command to Install Package related to NTFS Mount :-

[root@tejas-barot-linux-support-ahmedabad ~]# yum -y install ntfs-3g ntfsprogs

3. Attach NTFS Drive and Execute Below command to Find and Mount Partition :-

# To Find Attached NTFS Partition Execute Below Command :-

[root@tejas-barot-linux-support-ahmedabad ~]# fdisk -l | grep “NTFS”

# You will get output Something like below :- 

/dev/sdb1 * 1 1034 1973248 7 HPFS/NTFS

Execute Below command to Mount NTFS Partition

[root@tejas-barot-linux-support-ahmedabad ~]# mount /dev/sdb1 /mnt

4. To Mount NTFS Partition Permanently You can add following entry to /etc/fstab

<device-name> <mount-point> <file-system-type> <options> <dump> <checking>

Example Entry :-

/dev/sdb1 /mnt ntfs-3g default 0 0

Save and Exit from /etc/fstab

That’s IT, Now You will able to Mount / Access NTFS Partition on RHEL / CentOS 6.x

If you like this then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

All Linux User’s Blog Mobile Applications :- http://www.tejasbarot.com/download-mobile-apps/

Please Keep in Touch with Social Networking :- 

Facebook Page :- https://www.facebook.com/AllLinuxUsersBlog

Enjoy NTFS File System on CentOS / RHEL  🙂 Enjoy Linux 🙂 Enjoy Open Source 🙂

Custom Init / Boot Script for teamviewerd service for TeamViewer 8 / Ubuntu / CentOS / RHEL

Dear All,

Main Purpose of this script is :- Running teamviewerd as daemon on Ubuntu and CentOS / RHEL for TeamViewer 8.

As We already know that, TeamViewer 8 is now released and Looking Very nice. I have used the same for few days and Working fine.

But In Ubuntu I have faced the issue is that every time I am getting the error is “TeamViewer Daemon is not Running. Please Start the teamviewerd and Restart teamviewer.”

So To get the rid of above error, I have written a script to start teamviewerd on boot and we don’t need to do that manually. I am sharing the same script and tested on Ubuntu and it is working fine from last 5 days. The same script will work for CentOS / RHEL too but In CentOS / RHEL It is not required to start teamviewerd  manually. Below is the screenshot for the same.

 

teamviewerd
Error TeamViewerd

Script which i am sharing here is Originally written by me and for All Linux User’s Blog Visitors, It is possible that Few people may download and may change the Author Information and share again, I also don’t mind it but Trusted Source for the script is here only.

Usage of the script :- /etc/init.d/tvscript {start|stop|restart|status}

BUGS :- Do not rename this script as teamviewer or teamviewerd else it won’t work as expected.

For Ubuntu :-

1. You need to be root or any user with root rights.

2. Download the Script from below link :-

root@linux-support-ahmedabad-tejas-barot:~# wget -c http://www.tejasbarot.com/Scripts/tvscript.sh

3. Now Copy that Script to /etc/init.d/ and assign permissions

root@linux-support-ahmedabad-tejas-barot:~# cp tvscript.sh /etc/init.d/tvscript

root@linux-support-ahmedabad-tejas-barot:~# chmod 0755 /etc/init.d/tvscript

4. Now Let’s Update it as a Custom Init Script ( Boot Script )

root@linux-support-ahmedabad-tejas-barot:~# update-rc.d tvscript defaults

5. That’s It. Now You can use this script by /etc/init.d/tvscript or By rebooting your system.

For CentOS / RHEL 6.x :-

1. You need to be root or any user with root rights.

2. Download the Script from below link :-

[root@linux-support-ahmedabad-tejas-barot ~#] wget -c http://www.tejasbarot.com/Scripts/tvscript.sh

3. Now Copy that Script to /etc/init.d/ and assign permissions

[root@linux-support-ahmedabad-tejas-barot ~#] cp tvscript.sh /etc/init.d/tvscript

[root@linux-support-ahmedabad-tejas-barot ~#] chmod 0755 /etc/init.d/tvscript

4. Now Let’s Update it as a Custom Init Script ( Boot Script )

[root@linux-support-ahmedabad-tejas-barot ~#] chkconfig –add tvscript

5. That’s It. Now You can use this script by /etc/init.d/tvscript or By rebooting your system.

Hope this helps you all.

I hope this will helps you all, If you face any issue regarding the same or its not working for your some how then please raise your questions / issues then comment down below.

If you like this then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

All Linux User’s Blog Mobile Applications :- http://www.tejasbarot.com/download-mobile-apps/

Please Keep in Touch with Social Networking :- 

Facebook Page :- https://www.facebook.com/AllLinuxUsersBlog

Enjoy TeamViewerd 🙂 Enjoy TeamViewer 8 on Linux 🙂 Enjoy Linux 🙂 Enjoy Open Source 🙂

HOWTO: Install Squirrelmail on Linux | RHEL 6 | CentOS 6 | Ubuntu | 32-Bit | 64-Bit | x86_64

Hello,

SquirrelMail is an Open Source project that provides both a web-based email application and an IMAP proxy server.

The webmail portion of the project was started by Nathan and Luke Ehresman in 1999 and is written in the PHP scripting language. It can be installed on almost all web servers as long as PHP is present and the web server has access to an IMAP and SMTP server.

SquirrelMail webmail outputs valid HTML 4.0 for its presentation, making it compatible with a majority of current web browsers. SquirrelMail webmail uses a plugin architecture to accommodate additional features around the core application, and over 200 plugins are available on the SquirrelMail website

To Read More about Squirrelmail :- http://en.wikipedia.org/wiki/SquirrelMail

Squirrelmail is one of the best Web Mail which is available for Linux.

Squirrelmail is very famous and easy to use and Squirrelmail is completely Free and Open Source.

You can easily send/receive e-mails using this squirrelmail. This Article will show you steps to install Webmail on RHEL 6 / CentOS 632-bit and 64-Bit and Ubuntu.

Installing Squirrelmail on Red Hat Enterprise Linux 6 .CentOS 6 and Ubuntu  is very easy only just few Steps and you are done.

Please perform following steps to Install Squirrelmail on RHEL / CentOS 6 32-bit and 64-Bit ( X86_64 ) :-

1. You need to be root to Install RPM Packages.

2. Install EPEL Repository for RHEL / CentOS 6.x :-

For 32-Bit and 64-Bit (x86_64) :-

[root@tejas-barot-ahmedabad-linux ~]# wget http://tejasbarot.com/RPMs/epel-release-6-7.noarch.rpm

If you Want to Download Via Browser You can click on Above Link.

3. Execute Following command to install php-mbstring Package for Squirrelmail.

Package php-mbstring for RHEL 6.x / CentOS 6.x :-

For 32-Bit :-

[root@tejas-barot-ahmedabad-linux ~]# wget http://tejasbarot.com/RPMs/php-mbstring-5.3.3-3.el6_2.8.i686.rpm

If you want to Download Via Browser You can click on Above Link.

For 64-Bit ( X86_64) :-

[root@tejas-barot-ahmedabad-linux ~]# wget http://tejasbarot.com/RPMs/php-mbstring-5.3.3-3.el6_2.8.x86_64.rpm

If you want to Download Via Browser You can click on Above Link.

4. Now Execute Following command to Install SquirrelMail :-

[root@tejas-barot-ahmedabad-linux ~]# yum install squirrelmail

5. Once above command execute successfully please restart webserver.

[root@tejas-barot-ahmedabad-linux ~]# service httpd restart

6. To Open SquirrelMail. Point your browser to <your-ip-address>/webmail

7. That’s it. It is now done for RHEL / CentOS 6.x 32-Bit and 64-Bit (x86_64)

Please perform following steps to Install Squirrelmail on Ubuntu :-

1. You need to be root access via sudo or direct.

2. sudo apt-get install squirrelmail

3. Once above command execute successfully please restart webserver.

[root@tejas-barot-ahmedabad-linux ~]# service httpd restart

4. To Open SquirrelMail. Point your browser to <your-ip-address>/webmail

5. That’s it. It is now done for Ubuntu. Its very easy to install on Ubuntu.

Note :- On Ubuntu, I have tested only once so it is possible you might get some issues / difficulties, Please post comment if you have difficulties for any issues with this howto.

If this works for your then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

Enjoy Webmail on Linux 🙂 Enjoy SquirrelMail 🙂 Enjoy Linux 🙂 Enjoy Open Source 🙂

Howto: Running VLC Player as root Linux | Ubuntu | RHEL | CentOS | Fedora

Hello,

This article will help those people who wants to Run VLC Player as root on Linux.

There are not so many ways to make VLC Player work as root, and I have found this way is very easy and fast to make VLC Player Work as root.

Let me make one thing more clear that VLC is not only media player it can do so many things and Running VLC as root is very very risky. So think many times before you run VLC as root.

I have only tested that VLC can open using root user, have not tested other features. So take a note of this.

DO IT AT YOUR OWN RISK.

Before starting it let me tell you that please take a backup of original VLC file so you can recover if anything worst.

Perform following steps to Run VLC Player as root :-

1) Install Hexedit Package for your System

=> Package For Red Hat Entrprise Linux 5.x :-

For 32-Bit Architecture Users :-
[root@linux-support-ahmedabad-tejas-barot ~]# wget -c http://www.tejasbarot.com/RPMs/hexedit-1.2.12-10.el5.i386.rpm
[root@linux-support-ahmedabad-tejas-barot ~]# rpm -Uvh hexedit-1.2.12-10.el5.i386.rpm

For 64-Bit (X86_64) Architecture Users :-
[root@linux-support-ahmedabad-tejas-barot ~]# wget -c http://www.tejasbarot.com/RPMs/hexedit-1.2.12-10.el5.x86_64.rpm
[root@linux-support-ahmedabad-tejas-barot ~]# rpm -Uvh hexedit-1.2.12-10.el5.x86_64.rpm

=> Package For Red Hat Entrprise Linux 6.x :-

For 32-Bit Architecture Users :-
[root@linux-support-ahmedabad-tejas-barot ~]# wget -c http://www.tejasbarot.com/RPMs/hexedit-1.2.10-1.el6.rf.i686.rpm
[root@linux-support-ahmedabad-tejas-barot ~]# rpm -Uvh hexedit-1.2.10-1.el6.rf.i686.rpm

For 64-Bit (X86_64) Architecture Users :-
[root@linux-support-ahmedabad-tejas-barot ~]# wget -c http://www.tejasbarot.com/RPMs/hexedit-1.2.10-1.el6.rf.x86_64.rpm
[root@linux-support-ahmedabad-tejas-barot ~]# rpm -Uvh hexedit-1.2.10-1.el6.rf.x86_64.rpm

=> Ubuntu User can Execute Following command :-

root@linux-support-ahmedabad-tejas-barot:~# apt-get install hexedit

2) Now Execute Following command take backup of Original VLC Command :-

[root@linux-support-ahmedabad-tejas-barot ~]# cp -p /usr/bin/vlc /usr/bin/vlc_original_bin

3) Now Open /usr/bin/vlc into hexeditor, Execute Following command :-

[root@linux-support-ahmedabad-tejas-barot ~]# hexedit /usr/bin/vlc

4) Now Press “TAB” Key.

5) Now Press “CTRL + s” to search ASCII String.

6) In Search Box, Now Type “geteuid” and Replace it with “getppid”

7) Now Press “CTRL + x” to Save the file.

8) That’s it. Now You can Open VLC using Command and From Menu too.

If you like this article then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

Enjoy VLC Player 🙂 Enjoy VLC Player as root 🙂 Enjoy Linux 🙂 Enjoy Open Source 🙂

Howto: Installing WINE on RHEL / CentOS 5.x / 6.x | 32-bit | 64-bit | x86_64 | Linux

Hello All,

There are so many request from blog visitors to write Article on Wine Installation. Thanks for your request.

This article is for Install Wine on CentOS and RHEL 5.x and 6.x easily. Actually i have planned this article through script but due to shortage of time and now a days busy too, So Couldn’t implement complete script so Demonstrating manual how to over here.

I hope you guys will like the same.

Like VLC installation on Red Hat Enterprise Linux 5.x and 6.x and CentOS 5.x and 6.x its bit complicated and So much dependencies issues are there. So To make installation a bit easier and without too much headache i am writing this article.

This HOWTO performed on Blank RHEL / CentOS 5.x and 6.x if you are running with Latest or OLD RPMs you might face issue of Dependencies. Do it at your own risk wherever you are performing this howto.

To Install WINE on RHEL/CentOS 5.x and 6.x, Perform following Howto.

For RHEL / CentOS 6 32-Bit and 64-Bit (x86_64) :-

1. You need to be root to perform rest steps.

2. This step is must otherwise you might face dependencies issues. Now Lets take a backup of your Original Repository. By Executing Following Command :-
[root@wine-on-linux-ahmedabad-tejas-barot ~]# mkdir /repobackup
[root@wine-on-linux-ahmedabad-tejas-barot ~]#mv /etc/yum.repos.d/*.repo /repobackup/

3. Now Clean Previously Cached Repository by Executing Following command :-
[root@wine-on-linux-ahmedabad-tejas-barot ~]# yum clean all

4. Now Download and Install EPEL and Tejas Barot’s RPM for Wine to Install Wine on RHEL / CentOS 6.x.

To Download RPMs :-
[root@wine-on-linux-ahmedabad-tejas-barot ~]# cd /tmp
[root@wine-on-linux-ahmedabad-tejas-barot tmp]# wget http://www.tejasbarot.com/RPMs/epel-release-6-7.noarch.rpm
[root@wine-on-linux-ahmedabad-tejas-barot tmp]# wget http://www.tejasbarot.com/RPMs/wine-install-tejas-barot-2.0-2.noarch.rpm

To Install RPMs :-

[root@wine-on-linux-ahmedabad-tejas-barot tmp]# rpm -ivh –force epel-release-6-7.noarch.rpm
[root@wine-on-linux-ahmedabad-tejas-barot tmp]# rpm -ivh –force wine-install-tejas-barot-2.0-2.noarch.rpm
[root@wine-on-linux-ahmedabad-tejas-barot tmp]# cd

5. To install wine and its Packages execute following command :-

[root@wine-on-linux-ahmedabad-tejas-barot ~]# yum install –nogpgcheck wine*

When it ask for”YES”and”NO”Please go ahead with your choice.

6. That’s it, You are done now. Wine Installed Successfully.

7. Now Revert your previous repositories. by Following commands
[root@wine-on-linux-ahmedabad-tejas-barot ~]# rm -rf /etc/yum.repos.d/*.repo
[root@wine-on-linux-ahmedabad-tejas-barot ~]# mv /repobackup/*.repo /etc/yum.repos.d/

8. That’s It now. You have installed wine on RHEL / CentOS 6x Successfully and Your Previous Repositories also reverted back.

For RHEL / CentOS 5.x 32-Bit and 64-Bit (x86_64) :-

1. You need to be root to perform rest steps.

2. This step is must otherwise you might face dependencies issues. Now Lets take a backup of your Original Repository. By Executing Following Command :-
[root@wine-on-linux-ahmedabad-tejas-barot ~]# mkdir /repobackup
[root@wine-on-linux-ahmedabad-tejas-barot ~]#mv /etc/yum.repos.d/*.repo /repobackup/

3. Now Clean Previously Cached Repository by Executing Following command :-
[root@wine-on-linux-ahmedabad-tejas-barot ~]# yum clean all

4. Now Download and Install EPEL and Tejas Barot’s RPM for Wine to Install Wine on RHEL / CentOS 5.x.

To Download RPMs :-
[root@wine-on-linux-ahmedabad-tejas-barot ~]# cd /tmp
[root@wine-on-linux-ahmedabad-tejas-barot tmp]# wget http://www.tejasbarot.com/RPMs/epel-release-5-4.noarch.rpm
[root@wine-on-linux-ahmedabad-tejas-barot tmp]#wget http://www.tejasbarot.com/RPMs/wine-install-tejas-barot-1.0-1.noarch.rpm

To Install RPMs :-

[root@wine-on-linux-ahmedabad-tejas-barot tmp]# rpm -ivh –force epel-release-5-4.noarch.rpm
[root@wine-on-linux-ahmedabad-tejas-barot tmp]# rpm -ivh –force wine-install-tejas-barot-1.0-1.noarch.rpm
[root@wine-on-linux-ahmedabad-tejas-barot tmp]# cd

5. To install wine and its Packages execute following command :-

[root@wine-on-linux-ahmedabad-tejas-barot ~]# yum install –nogpgcheck wine*

When it ask for”YES”and”NO”Please go ahead with your choice.

6. That’s it, You are done now. Wine Installed Successfully.

7. Now Revert your previous repositories. by Following commands
[root@wine-on-linux-ahmedabad-tejas-barot ~]# rm -rf /etc/yum.repos.d/*.repo
[root@wine-on-linux-ahmedabad-tejas-barot ~]# mv /repobackup/*.repo /etc/yum.repos.d/

8. That’s It now. You have installed wine on RHEL / CentOS 5.x Successfully and Your Previous Repositories also reverted back.

Hope this will helps you, Waiting for your feedback.

If you like this then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

All Linux User’s Blog Mobile Applications :- http://www.tejasbarot.com/download-mobile-apps/

Enjoy Wine on Red Hat Enterprise Linux and CentOS 5.x and 6.x 🙂 Enjoy Linux 🙂 Enjoy Open Source 🙂