Thursday, April 30, 2015

How to run windows program on Lubuntu


Did you know that you can actually run windows executable program (*.exe) on lubuntu linux? In this article i will show you how to run windows program from inside lubuntu.

To do this we are going to need an emulator called wine, to install wine all you have to do is run this command:

sudo apt-get install wine

Wine package is quite big, so be patient if you have slow internet connection.

kernelpanic@lubuntulaptop:~$ sudo apt-get install wine
[sudo] password for kernelpanic:
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following extra packages will be installed:
  attr binfmt-support cabextract cups cups-bsd cups-client cups-common
  cups-core-drivers cups-daemon cups-server-common fonts-horai-umefont
  fonts-unfonts-core fonts-wqy-microhei gnome-exe-thumbnailer icoutils
  imagemagick imagemagick-common libaio1 libcapi20-3 libcups2 libcupscgi1
  libcupsimage2 libcupsmime1 libcupsppdc1 libegl1-mesa libegl1-mesa-drivers
  libfftw3-double3 libfile-copy-recursive-perl libgl1-mesa-glx libglapi-mesa
  libgomp1 libhdb9-heimdal libkdc2-heimdal liblqr-1-0 libmagickcore5
  libmagickcore5-extra libmagickwand5 libnetpbm10 libodbc1 libopenal-data
  libopenal1 libosmesa6 libp11-kit-gnome-keyring libsmbclient
  libwayland-egl1-mesa libwbclient0 netpbm ocl-icd-libopencl1 odbcinst
  odbcinst1debian2 p7zip python-crypto python-dnspython python-ldb python-ntdb
  python-samba python-tdb samba samba-common samba-common-bin
  samba-dsdb-modules samba-libs samba-vfs-modules tdb-tools
  ttf-mscorefonts-installer ttf-wqy-microhei unixodbc update-inetd winbind
  wine-gecko2.21 wine-mono0.0.8 wine1.6 wine1.6-i386 winetricks
Suggested packages:
  printer-driver-hpcups hplip cups-pdf smbclient xpp libterm-readline-gnu-perl
  libterm-readline-perl-perl imagemagick-doc autotrace enscript ffmpeg gnuplot
  grads hp2xx html2ps libwmf-bin povray radiance sane-utils texlive-base-bin
  transfig ufraw-batch isdnutils-doc libfftw3-bin libfftw3-dev libmyodbc
  odbc-postgresql tdsodbc unixodbc-bin libroar-compat2 opencl-icd p7zip-full
  python-crypto-dbg python-crypto-doc bind9 bind9utils ldb-tools smbldap-tools
  heimdal-clients libnss-winbind libpam-winbind dosbox:any
Recommended packages:
  avahi-daemon colord cups-browsed
The following NEW packages will be installed:
  attr binfmt-support cabextract cups-bsd fonts-horai-umefont
  fonts-unfonts-core fonts-wqy-microhei gnome-exe-thumbnailer icoutils
  imagemagick imagemagick-common libaio1 libcapi20-3 libfftw3-double3
  libfile-copy-recursive-perl libgomp1 libhdb9-heimdal libkdc2-heimdal
  liblqr-1-0 libmagickcore5 libmagickcore5-extra libmagickwand5 libnetpbm10
  libodbc1 libopenal-data libopenal1 libosmesa6 libp11-kit-gnome-keyring
  netpbm ocl-icd-libopencl1 odbcinst odbcinst1debian2 p7zip python-crypto
  python-dnspython python-ldb python-ntdb python-samba python-tdb samba
  samba-common samba-common-bin samba-dsdb-modules samba-vfs-modules tdb-tools
  ttf-mscorefonts-installer ttf-wqy-microhei unixodbc update-inetd winbind
  wine wine-gecko2.21 wine-mono0.0.8 wine1.6 wine1.6-i386 winetricks
The following packages will be upgraded:
  cups cups-client cups-common cups-core-drivers cups-daemon
  cups-server-common libcups2 libcupscgi1 libcupsimage2 libcupsmime1
  libcupsppdc1 libegl1-mesa libegl1-mesa-drivers libgl1-mesa-glx libglapi-mesa
  libsmbclient libwayland-egl1-mesa libwbclient0 samba-libs
19 upgraded, 56 newly installed, 0 to remove and 270 not upgraded.
Need to get 123 MB of archives.
After this operation, 363 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Once wine is installed, you can run windows program (.exe) on lubuntu, but first you need to give permission to windows program so that it can be run via wine emulator.

For example i have program called setup.exe, to give permission to execute, i type this command on my console:

sudo chmod +rx setup.exe

But in some cases this is not necessary, in some program you can just double click and it will works, but if wine shows error message then you must give permission first.

Keep in mind that there is no guarantee that all windows program will works on linux/lubuntu using wine emulator.

No comments:

Post a Comment