Wine-java
How To Install Wine 4.0 On CentOS 7
# yum -y groupinstall 'Development Tools'
# yum -y install libX11-devel freetype-devel zlib-devel libxcb-devel libxslt-devel libgcrypt-devel libxml2-devel gnutls-devel libpng-devel libjpeg-turbo-devel libtiff-devel gstreamer-devel dbus-devel fontconfig-devel
# yum -y install wine
checking the Wine version:
# wine --version
the X Window System installed, run the command as normal user to see wine configuration.
# winecfg
# wine64 notepad
# wine64 c:\windows\notepad.exe
yum groupinstall "Development Tools"
yum -y install libX11-devel freetype-devel zlib-devel libxcb-devel
yum -y install java*
yum -y install java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64
Centos 6/RHEL install Wine
A short post on installing Wine on Centos 6/RHEL and other rpm based distros if you still need to use Windows apps and are not using any kind of Dual Boot or Virtual Machine set up as it can be helpful for the odd program from which you may want to use in Linux.
If you haven't yet installed Linux then you can install Centos 6 from a netinstall cd and configure a Fluxbox lightweight desktop with Thunar and Rxvt terminal. Alternatively you can use a distro or setup of your own.
Wine is in the Epel repo so make sure you have it installed with
$ rpm –-import http://mirrors.coreix.net/fedora-epel/RPM-GPG-KEY-EPEL-6
$ rpm -Uvh http://mirrors.coreix.net/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
Install the package.
$ yum install wine -y
Configure it.
$ winecfg
Step-V (Configuring and run native windows application using wine)
# winecfg # wine paint
Install Wine 1.6.2 Stable in RHEL/CentOS 7.0/6.x/5.x and Fedora 20-12
by RavNovember 29, 2014
Wine is an open source and free application for Linux that enables users to run any windows based application on Unix/Linux like operating system. Wine team is keep releasing their versions in every two weeks.
Finally, the Wine team proudly announced the stable release of Wine 1.6.2 and made available for download in source and binary packages for various distributions such as Linux, Windows and Mac.
This release describes 25 months of development struggle and brings more than 10000 new individual changes.
The core feature in this stable release of Wine is the implementation of color management support reached to liblcms version 2. As well as fixed several bug fixes for the Windows games and tools such as: Resident Evil 2 Max Payne 2, Unreal Tournament GOTY, FEAR Combat, Age of Empires II, Windows Installer Cleanup, League of Legends, NVIDIA CUDA Toolkit v5.5, FL Studio, and a few other core changes.
For a complete summary of major changes, See the release notes of Wine 1.6.2 at http://www.winehq.org/announce/1.6.2
Read also : Install Wine 1.6.2 in Debian, Ubuntu and Linux Mint
###################################
Install Wine in Linux
In this article we will guide you a simplest way to install latest release of Wine 1.6.2 version in RHEL 7.0/6.x/5.x, CentOS 7.0/6.x/5.x and Fedora 20-12 using source code.
WINE
Wine stands for “Wine is not an emulator” and it is an open source software which allows Linux, Mac, FreeBSD, and Solaris users to run Windows applications without a copy of Microsoft Windows. Wine is not a virtual machine or emulator it just provides the binary compatibility. In this artical we will know about the wine installation in Linux.
First check is there any wine package is installed in our machine by using the following command
[root@localhost ~]# rpm -qa|grep wine
If there is any wine version is already installed remove it by using yum remove wine command to avoid some problems when the time of installation and in the running of applications.
Before we proceeding to install wine package we need to install some prerequisites by using the following command
[root@localhost ~]# yum install libX11-devel freetype-devel zlib-devel libxcb-devel
After the installation of that change the path to /usr/src folder and then Download the wine package by using as follows
[root@localhost ~]# cd /usr/src [root@localhost src]# wget http://dl.winehq.org/wine/source/1.8/wine-1.8.3.tar.bz2
We can also get the latest version of wine from their official site
After the successful download extract the wine package by using tar command.
[root@localhost src]# tar -xjvf wine-1.8.3.tar.bz2
Then change the path to the wine directory
[root@localhost src]#cd wine-1.8.3/
Now run the configure script
For 32-Bit Systems: # ./configure For 64-Bit Systems: # ./configure --enable-win64
We can find 32 bit or 64 bit by using arch command
Sample output:
After that run the command make
[root@localhost wine-1.8.3]# make
Now run the command make install as follows
[root@localhost wine-1.8.3]# make install
After the installation completes check version by using as follows
On 32-Bit Systems # wine --version On 64-Bit Systems # wine64 –version
When you first time try to run the wine commands it shows the dialogue box to install wine mono installer as shown below
Now we can open the windows application notepad in the Linux by using the wine as follows
For 32-bit systems
[root@localhost ~]# wine notepad
For 64-bit systems
[root@localhost ~]# wine64 notepad
We can get the wine compatibility application list from here, Enjoy the windows programs and games in Linux. Have a fun!
############################################################
Install Wine 1.6.2 in RHEL 7.0/6.x/5.x, CentOS 7.0/6.x/5.x and Fedora 20-12
Installing Wine 1.6.2 in RHEL, CentOS and Fedora
Step 1: Installing Dependency Packages
We need to install ‘Development Tools‘ with some core development tools such gcc, flex, bison, debuggers etc. these software’s are must required to compile and build new packages, install them using YUM command.
# yum -y groupinstall 'Development Tools' # yum -y install libX11-devel freetype-devel
Step 2: Downloading Wine 1.6.2
Download the source file using Wget command under /tmp directory as a normal User.
$ cd /tmp $ wget http://nchc.dl.sourceforge.net/project/wine/Source/wine-1.6.2.tar.bz2
Step 3: Extracting Wine 1.6.2
Once the file is downloaded under /tmp directory, use the below commands to extract it.
$ tar -xvf wine-1.6.2.tar.bz2 -C /tmp/
Step 4: Installing Wine 1.6.2
It is recommended to compile and build Wine installer as a normal User. Run the following commands as normal user. (Note : The installer might take up-to 20-30 minutes and in the middle it will ask you to enter root password).
On 32-Bit Systems
$ cd wine-1.6.2/ $ ./tools/wineinstall
On 64-Bit Systems
$ cd wine-1.6.2/ $ ./configure --enable-win64 $ make # make install
Once the installation completes run the “winecfg” configuration tool from KDE or GNOME desktop to see the supported configuration. If you don’t have any of the desktop, you can install it by using the below command as root user.
# yum groupinstall "X Window System" "GNOME Desktop Environment" OR # yum groupinstall "X Window System" "KDE (K Desktop Environment)" # yum groupinstall "GNOME Desktop" [On CentOS 7] # yum groupinstall "Server with GUI" [On RHEL 7]
Once the X Window System installed, run the command as normal user to see wine configuration.
$ winecfg [On 32-Bit System] $ wine64cfg [On 64-Bit System]
Winecfg Screen
Step 5: Running Wine 1.6.2
To run the Wine, you must specify the full path to the executable program. For example shown below.
$ wine notepad $ wine notepad.exe $ wine c:\\windows\\notepad.exe
Running Wine in KDE
Wine is not perfect, because while using wine we see so many programs crashes. I think wine team will soon fix all bugs in their upcoming version and meanwhile do share your comments using our below form.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
How to Install JAVA 7 (JDK 7u75) on CentOS/RHEL 7/6/5 and Fedora
During installation of Java using rpm files I faced issues many times. After that i found a better way to install java from Sun site. Using below steps i have installed java successfully many times without facing any issues. We can also install multiple version of java easily if required. Oracle has also released Java 8. To install it read article Install Java 8 in CentOS, Redhat and Fedora.
Use following step by step instructions to install or update Java. I recommend to read carefully instruction for downloading Java from Linux command line.
Downloading Latest Java Archive
Java latest archive is available on its official site. We recommend to download latest version of Java from Oracle official website.
For 64 Bit:-
# cd /opt/ # wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u75-b13/jdk-7u75-linux-x64.tar.gz"
For 32 Bit:-
# cd /opt/ # wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u75-b13/jdk-7u75-linux-i586.tar.gz"
Note: If Above wget command doesn’t not work for you watch this example video to download java source archive using terminal.
After completing download, Extract archive using following command. Use archive file as per your system configuration. For this example we are using CentOS 6.6 (64 bit) system.
# tar xzf jdk-7u75-linux-x64.tar.gz
Install Java with Alternatives
After extracting Java archive file, we just need to set up to use newer version of Java using alternatives. Use the following commands to do it.
# cd /opt/jdk1.7.0_75/ # alternatives --install /usr/bin/java java /opt/jdk1.7.0_75/bin/java 2 # alternatives --config java
There are 4 programs which provide 'java'. Selection Command ----------------------------------------------- * 1 /usr/lib/jvm/jre-1.6.0-openjdk/bin/java + 2 /opt/jdk1.7.0_60/bin/java 3 /opt/jdk1.7.0_72/bin/java 4 /opt/jdk1.7.0_75/bin/java Enter to keep the current selection[+], or type selection number: 4 [Press Enter]
Now you may also required to set up javac and jar commands path using alternatives command.
# alternatives --install /usr/bin/jar jar /opt/jdk1.7.0_75/bin/jar 2 # alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_75/bin/javac 2 # alternatives --set jar /opt/jdk1.7.0_75/bin/jar # alternatives --set javac /opt/jdk1.7.0_75/bin/javac
Check Installed Java Version
Use following command to check which version of Java is currently being used by system.
# java -version java version "1.7.0_75" Java(TM) SE Runtime Environment (build 1.7.0_75-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode)
Configuring Environment Variables
Most of Java based application’s uses environment variables to work. Use following commands to set up these variable properly. It’s also good to add following commands to any start-up script like ~/.bashrc or ~/.bash_profile.
Setup JAVA_HOME Variable
# export JAVA_HOME=/opt/jdk1.7.0_75
Setup JRE_HOME Variable
# export JRE_HOME=/opt/jdk1.7.0_75/jre
Setup PATH Variable
# export PATH=$PATH:/opt/jdk1.7.0_75/bin:/opt/jdk1.7.0_75/jre/bin
I hope above steps will help you for installing Java on your Linux system. You can follow above steps to install multiple version of Java as same time but you can use only one version at a time.
##############################################################################################
wget wget http://nchc.dl.sourceforge.net/project/wine/Source/wine-1.6.2.tar.bz2
ls
tar -xvf wine-1.6.2.tar.bz2
ls
cd wine-1.6.2
ls
cd tools/
ls
./wineinstall
#####################################################################################
WINE
Wine stands for “Wine is not an emulator” and it is an open source software which allows Linux, Mac, FreeBSD, and Solaris users to run Windows applications without a copy of Microsoft Windows. Wine is not a virtual machine or emulator it just provides the binary compatibility. In this artical we will know about the wine installation in Linux.
First check is there any wine package is installed in our machine by using the following command
[root@localhost ~]# rpm -qa|grep wine
If there is any wine version is already installed remove it by using yum remove wine command to avoid some problems when the time of installation and in the running of applications.
Before we proceeding to install wine package we need to install some prerequisites by using the following command
[root@localhost ~]# yum install libX11-devel freetype-devel zlib-devel libxcb-devel
The sample output is like
Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: ftp.iitm.ac.in * extras: ftp.iitm.ac.in * updates: ftp.iitm.ac.in Resolving Dependencies --> Running transaction check ---> Package freetype-devel.x86_64 0:2.4.11-11.el7 will be installed ---> Package libX11-devel.x86_64 0:1.6.3-2.el7 will be installed --> Processing Dependency: pkgconfig(xproto) for package: libX11-devel-1.6.3-2.el7.x86_64 --> Processing Dependency: pkgconfig(kbproto) for package: libX11-devel-1.6.3-2.el7.x86_64 ---> Package libxcb-devel.x86_64 0:1.11-4.el7 will be installed --> Processing Dependency: pkgconfig(xau) >= 0.99.2 for package: libxcb-devel-1.11-4.el7.x86_64 ---> Package zlib-devel.x86_64 0:1.2.7-15.el7 will be installed --> Running transaction check ---> Package libXau-devel.x86_64 0:1.0.8-2.1.el7 will be installed ---> Package xorg-x11-proto-devel.noarch 0:7.7-12.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ========================================================================= Package Arch Version Repository Size ========================================================================= Installing: freetype-devel x86_64 2.4.11-11.el7 base 356 k libX11-devel x86_64 1.6.3-2.el7 base 980 k libxcb-devel x86_64 1.11-4.el7 base 1.1 M zlib-devel x86_64 1.2.7-15.el7 base 50 k Installing for dependencies: libXau-devel x86_64 1.0.8-2.1.el7 base 14 k xorg-x11-proto-devel noarch 7.7-12.el7 base 281 k Transaction Summary ========================================================================= Install 4 Packages (+2 Dependent packages) Total download size: 2.7 M Installed size: 7.6 M Is this ok [y/d/N]: y Downloading packages: (1/6): libXau-devel-1.0.8-2.1.el7.x86_64.rpm | 14 kB 00:02 (2/6): freetype-devel-2.4.11-11.el7.x86_64.rpm | 356 kB 00:05 (3/6): zlib-devel-1.2.7-15.el7.x86_64.rpm | 50 kB 00:01 (4/6): xorg-x11-proto-devel-7.7-12.el7.noarch.rpm | 281 kB 00:04 (5/6): libX11-devel-1.6.3-2.el7.x86_64.rpm | 980 kB 00:10 (6/6): libxcb-devel-1.11-4.el7.x86_64.rpm | 1.1 MB 00:14 ------------------------------------------------------------------------- Total 188 kB/s | 2.7 MB 00:14 Running transaction check Transaction test succeeded Running transaction Installing : xorg-x11-proto-devel-7.7-12.el7.noarch 1/6 Installing : libXau-devel-1.0.8-2.1.el7.x86_64 2/6 Installing : libxcb-devel-1.11-4.el7.x86_64 3/6 Installing : zlib-devel-1.2.7-15.el7.x86_64 4/6 Installing : freetype-devel-2.4.11-11.el7.x86_64 5/6 Installing : libX11-devel-1.6.3-2.el7.x86_64 6/6 Verifying : zlib-devel-1.2.7-15.el7.x86_64 1/6 Verifying : freetype-devel-2.4.11-11.el7.x86_64 2/6 Verifying : libxcb-devel-1.11-4.el7.x86_64 3/6 Verifying : xorg-x11-proto-devel-7.7-12.el7.noarch 4/6 Verifying : libX11-devel-1.6.3-2.el7.x86_64 5/6 Verifying : libXau-devel-1.0.8-2.1.el7.x86_64 6/6 Installed: freetype-devel.x86_64 0:2.4.11-11.el7 libX11-devel.x86_64 0:1.6.3-2.el7 libxcb-devel.x86_64 0:1.11-4.el7 zlib-devel.x86_64 0:1.2.7-15.el7 Dependency Installed: libXau-devel.x86_64 0:1.0.8-2.1.el7 xorg-x11-proto-devel.noarch 0:7.7-12.el7 Complete! [root@localhost ~]#
After the installation of that change the path to /usr/src folder and then Download the wine package by using as follows
[root@localhost ~]# cd /usr/src [root@localhost src]# wget http://dl.winehq.org/wine/source/1.8/wine-1.8.3.tar.bz2
We can also get the latest version of wine from their official site
After the successful download extract the wine package by using tar command.
[root@localhost src]# tar -xjvf wine-1.8.3.tar.bz2
Then change the path to the wine directory
[root@localhost src]#cd wine-1.8.3/
Now run the configure script
For 32-Bit Systems: # ./configure For 64-Bit Systems: # ./configure --enable-win64
We can find 32 bit or 64 bit by using arch command
Sample output:
After that run the command make
[root@localhost wine-1.8.3]# make
Now run the command make install as follows
[root@localhost wine-1.8.3]# make install
After the installation completes check version by using as follows
On 32-Bit Systems # wine --version On 64-Bit Systems # wine64 –version
When you first time try to run the wine commands it shows the dialogue box to install wine mono installer as shown below
Now we can open the windows application notepad in the Linux by using the wine as follows
For 32-bit systems
[root@localhost ~]# wine notepad
For 64-bit systems
[root@localhost ~]# wine64 notepad
We can get the wine compatibility application list from here, Enjoy the windows programs and games in Linux. Have a fun!