Difference between revisions of "Windows Emulation/9.2"

From PC-BSD Wiki
Jump to: navigation, search
(Installing and Using Wine)
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{NavHeader|back=XBMC|forward=Files and File Sharing}}
+
<noinclude>{{NavHeader|back=XBMC|forward=Remote Desktop}}</noinclude>
[http://www.winehq.org/ Wine] is an application that allows you to create a Windows environment for installing Windows software. This can be useful if your favourite Windows game or productivity application has not been ported to Linux or BSD.
+
  
Wine is not guaranteed to work with every Windows application. If you are unsure if the application that you require is supported, search for it in the Browse Apps section of the [http://appdb.winehq.org/ Wine Application Database]. The [http://wiki.winehq.org/ Wine Wiki] contains many resources to get you started and to refer to if you encounter problems with your Windows application.
+
{{citelink|url=http://www.winehq.org/|txt=Wine}} is an application that allows you to create a Windows environment for installing Windows software. This can be useful if your favorite Windows game or productivity application has not been ported to Linux or BSD.  
  
===Installing and Using Wine===
+
Wine is not guaranteed to work with every Windows application. If you are unsure if the application that you require is supported, search for it in the "Browse Apps" section of the {{citelink|url=http://appdb.winehq.org/|txt=Wine Application Database}}. The {{citelink|url=http://wiki.winehq.org/|txt=Wine Wiki}} contains many resources to get you started and to refer to if you encounter problems with your Windows application.
  
Wine can be installed from [[Using AppCafe™ | AppCafe™]]. In Figure 8.5a, the user has performed a search to find the Wine PBI. You should install the version that is correct for your architecture (32-bit or 64-bit).
+
=== Installing and Using Wine ===
  
'''Figure 8.5a: Installing Wine from AppCafe™'''
+
Wine can be installed from [[Using AppCafe® | AppCafe®]]. In Figure 9.6a, the user has performed a search to find the Wine PBI. You should install the version that is correct for your architecture (32-bit or 64-bit).
  
[[File:Wine.jpeg]]
+
'''Figure 9.6a: Installing Wine from AppCafe®'''
  
Once installed, an icon for Wine Configuration will be added to the Control Panel and, depending upon your desktop, a desktop icon may be created as well. Double-clicking this icon will load the Wine configuration menu shown in Figure 8.5b. You can also start this program by typing '''winecfg''' at the command line.
+
[[File:Wine.png]]
  
'''Figure 8.5b: Wine Configuration Menu'''
+
Once installed, an icon for Wine Configuration will be added to the Control Panel and, depending upon your desktop, a desktop icon may be created as well. Double-clicking the icon will load the Wine configuration menu shown in Figure 9.6b. You can also start this program by typing '''winecfg''' at the command line.
 +
 
 +
'''Figure 9.6b: Wine Configuration Menu'''
  
 
[[File:Wine1b.jpeg]]
 
[[File:Wine1b.jpeg]]
  
Click the Add application button to browse to the application's installer file. By default, the contents of your hard drive will be listed under "drive_c". If the installer is on a CD/DVD, use the drop-down menu to browse to your home directory -> ''.wine'' -> ''dosdevices'' folder. The contents of the CD/DVD should be listed under ''d:''. If they are not, the most likely reason is that your CD/DVD was not sutomatically mounted by the desktop. To mount the media, type the following as the superuser:
+
Click the "Add application" button to browse to the application's installer file. By default, the contents of your hard drive will be listed under "drive_c". If the installer is on a CD/DVD, use the drop-down menu to browse to your home directory ''.wine'' ''dosdevices'' folder. The contents of the CD/DVD should be listed under ''d:''. If they are not, the most likely reason is that your CD/DVD was not automatically mounted by the desktop. To mount the media, type the following as the superuser:
  
'''mount -t cd9660 /dev/cd0 /cdrom'''
+
{{txtbox|box='''mount -t cd9660 /dev/cd0 /cdrom'''}}
  
You should hear the media spin and be able to select the installer file. Once selected, press Apply then OK to exit the configuration utility.
+
You should hear the media spin and be able to select the installer file. Once selected, press "Apply" then "OK" to exit the configuration utility.
  
To install the application, click the Winefile desktop icon or type '''winfile''' to see the screen shown in Figure 8.5c:
+
To install the application, click the Winefile desktop icon or type '''winefile''' to see the screen shown in Figure 9.6c:
  
'''Figure 8.5c: Installing the Application Using winfile'''
+
'''Figure 9.6c: Installing the Application Using winefile'''
  
 
[[File:Wine2.jpeg]]
 
[[File:Wine2.jpeg]]
Line 34: Line 35:
 
'''NOTE:''' if you had to manually mount the CD/DVD, you will need to unmount it before it will eject. As the superuser, use the command '''umount /mnt'''.
 
'''NOTE:''' if you had to manually mount the CD/DVD, you will need to unmount it before it will eject. As the superuser, use the command '''umount /mnt'''.
  
Once the installation is complete, browse to ''C:\'' and find the application's location. Figure 8.5d shows an example of running Internet Explorer within '''winfile'''.
+
Once the installation is complete, browse to ''C:\'' and find the application's location. Figure 9.6d shows an example of running Internet Explorer within '''winefile'''.
  
'''Figure 8.5d: Running the Installed Application'''
+
'''Figure 9.6d: Running the Installed Application'''
  
 
[[File:Wine3.jpeg]]
 
[[File:Wine3.jpeg]]
 +
 +
<noinclude>{{refheading}}</noinclude>
 +
<noinclude>
 +
[[category:handbook]]
 +
[[category:Common Tasks]]
 +
[[category:Windows Emulation]]
 +
</noinclude>

Revision as of 03:55, 19 February 2013

(Sorry for the inconvenience)

Contents

Wine[1] is an application that allows you to create a Windows environment for installing Windows software. This can be useful if your favorite Windows game or productivity application has not been ported to Linux or BSD.

Wine is not guaranteed to work with every Windows application. If you are unsure if the application that you require is supported, search for it in the "Browse Apps" section of the Wine Application Database[2]. The Wine Wiki[3] contains many resources to get you started and to refer to if you encounter problems with your Windows application.

Installing and Using Wine

Wine can be installed from AppCafe®. In Figure 9.6a, the user has performed a search to find the Wine PBI. You should install the version that is correct for your architecture (32-bit or 64-bit).

Figure 9.6a: Installing Wine from AppCafe®

Wine.png

Once installed, an icon for Wine Configuration will be added to the Control Panel and, depending upon your desktop, a desktop icon may be created as well. Double-clicking the icon will load the Wine configuration menu shown in Figure 9.6b. You can also start this program by typing winecfg at the command line.

Figure 9.6b: Wine Configuration Menu

Wine1b.jpeg

Click the "Add application" button to browse to the application's installer file. By default, the contents of your hard drive will be listed under "drive_c". If the installer is on a CD/DVD, use the drop-down menu to browse to your home directory ➜ .winedosdevices folder. The contents of the CD/DVD should be listed under d:. If they are not, the most likely reason is that your CD/DVD was not automatically mounted by the desktop. To mount the media, type the following as the superuser:

mount -t cd9660 /dev/cd0 /cdrom

You should hear the media spin and be able to select the installer file. Once selected, press "Apply" then "OK" to exit the configuration utility.

To install the application, click the Winefile desktop icon or type winefile to see the screen shown in Figure 9.6c:

Figure 9.6c: Installing the Application Using winefile

Wine2.jpeg

Click the button representing the drive containing the installer (in this example, D:\) and double click on the installation file (e.g. setup.exe). The installer should launch and you can proceed to install the application as you would on a Windows system.

NOTE: if you had to manually mount the CD/DVD, you will need to unmount it before it will eject. As the superuser, use the command umount /mnt.

Once the installation is complete, browse to C:\ and find the application's location. Figure 9.6d shows an example of running Internet Explorer within winefile.

Figure 9.6d: Running the Installed Application

Wine3.jpeg

References


  1. http://www.winehq.org/
  2. http://appdb.winehq.org/
  3. http://wiki.winehq.org/