Wednesday, October 26, 2005

 

Using Wine in SUSE 9.3

(needs more information and formating)

(a simple step-by-step guide)

by: Metamorphousthe
October 25, 2005
http://metamorphousthe.blogspot.com
metamorphousthe@gmail.com

Contents:
About Wine
About WineTools
Files to be installed
Developer homepages and referal documents
Procedure
----- A. Acquiring the needed files
----------- 1. wine-20041019-SuSELinux92.i586.rpm
----------- 2. winetools-2.1.2-jo.i386.rpm
----- B. Installing the downloaded files
----- C. Setting up the Base Setup files & Windows System Software
----------- 1. Base Setup
----------------- i. Create a fake Windows drive
----------------- ii. TrueType Font Arial
----------------- iii. DCOM98
----------------- iv. Microsoft Foundation Classes 4.0
----------------- v. Microsoft Internet Explorer 6.0 SP1 English
----------------- vi. Add printcap (non CUPS) printers
----------- 2. Install Windows system software
----------------- i. Windows Installer
----------------- ii. Visual Basic 5 Runtime
----------------- iii. Visual Basic 6 Runtime
----------------- iv. Visual C++ run-time English
----------------- v. MDAC 2.8 and Jet 4.0 SP8 English
----------------- vi. MSXML 4.0 Service Pack 2 English
----------------- vii. Windows Script 5.6 English
----------------- viii. Common Controls 5.0
----- D. Installing TrueType Fonts
----- E. Installing Supported and Non-Supported Software
----------- 1. Supported Software
----------------- i. From the internet
----------------- ii. From licensed CDROM
----------- 2. Non-Supported Software
----------------- i. From file on directory
----------------------- a. installers
----------------------- b. non-installers
----------------- ii. From CDROM
----- F. Setting up Shortcuts/Quicklaunches
----------- 1. KMenu Shortcuts
----------- 2. Desktop Shortcuts
----------- 3. Quicklaunches from /bin
----- G. Additional Tweaks and Hacks

About Wine:

Wine is a recursive acronym which stands for Wine Is Not an Emulator. Wine is an Open Source implementation of the Windows API on top of X and Unix. Think of Wine as a compatibility layer for running Windows programs. Wine does not require Microsoft Windows, as it is a completely free alternative implementation of the Windows API consisting of 100% non-Microsoft code, however Wine can optionally use native Windows DLLs if they are available. Wine provides both a development toolkit for porting Windows source code to Unix as well as a program loader, allowing many unmodified Windows programs to run on x86-based Unixes, including Linux, FreeBSD, and Solaris. As of this writing, Wine has finally reached a beta testing stage from its long used alpha stage versions.

About WineTools:

WineTools is a menu driven installer for installing about 90 Windows programs under the x86 (Athlon or Intel PC) processor architecture with the Linux operating system using Wine. This software lets you install the following Windows software:

DCOM98
IE6
Windows Core Fonts
Windows System Software
Office & Office Viewer
Adobe Photoshop 7, Illustrator 9
many other programs

WineTools also sets up your /.wine directory in the correct way, downloads the files to install from the web (only the free and shareware ones for sure), installs Windows fonts and lets you uninstall and configure your software.

Files to be installed:

wine-20041019-SuSELinux92.i586.rpm – (9.7 MB) [Installs as 58.4 MB]
winetools-2.1.2-jo.i386.rpm – (275.6 KB) [Installs as 780.8 KB]

Developer homepages and referral documents:

Wine HQ - http://www.winehq.com/
WineTools - http://www.von-thadden.de/Joachim/WineTools/

Procedure:

A. Acquiring the needed files:
As of this writing the current version of Wine is .9 beta, though this is the case the version tested and recommended with and by WineTools-2.1.2-jo is Wine-20041019 alpha so this will be the version we install and use.

1. wine-20041019-SuSELinux92.i586.rpm

we need to find the Wine-20041019 for SUSE 9.2 file. Though this version indicates use with SUSE 9.2, it will be installed on SUSE 9.3 (and should also work for SUSE 10.0). Open a web browser and go to http://rpm.pbone.net/, and type in the search field:

wine-20041019-SuSELinux92.i586.rpm

and click 'Search'

the results window will return one default search, click on the link under 'Filename'

we will need to choose one of two mirrors to download the file from. Choose one of them by simply right-clicking one of the links under 'Filename' and choose 'Save Link As...'. By default, we should be downloading the file to our 'Home' or 'Documents Folder', remember where it is saved to. Click 'Save' to begin the download

should problems arise, file downloads can be found directly from one of the links below:

Wine-20041019

ftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/w/wi/wine/wine-20041019-SuSELinux92.i586.rpm

ftp://ftp.chg.ru/.2/sourceforge/w/wi/wine/wine-20041019-SuSELinux92.i586.rpm


2. winetools-2.1.2-jo.i386.rpm

we need to find WineTools-2.1.2-jo. This is the latest version of WineTools and has been tested and recommended to work with Wine-20041019. Open a web browser and go to
http://www.von-thadden.de/Joachim/WineTools/

from the left navigation click 'Download', below the chart find the heading 'Download WineTools for your distribution:' and right-click on the 'rpm' link in 'RedHat, Fedora Core, SuSE users use the rpm' and choose 'Save Link As...'. Click 'Save' to begin the download

should problems arise, the file can be downloaded directly from the link below:

WineTools-2.1.2-jo

http://ds80-237-203-29.dedicated.hosteurope.de/wt/winetools-2.1.2-jo.i386.rpm

B. Installing the downloaded files:
We will now take the Wine and WineTools through the initial stages of setup. If we should choose to install the Wine-20041019 and WineTools-2.1.2-jo configuration files to a different directory than the defaults that they will be installed to we would then refer to: http://www.von-thadden.de/Joachim/WineTools/index.html#install.
However, at this point
we will keep it simple and allow all configuration files and software installs to install into their default directories.

we need to go to the folder to where the Wine-20041019 and WineTools-2.1.2-jo files were downloaded to. In this case they were downloaded to the ~/home/user directory. Using Konqueror as the file manager, go to the ~/home/user directory, and in the top tabs choose 'Tools' > 'Open Terminal' (or use the F4 key). This will bring up the Terminal (Konsole) prompting you for command line arguments. We need to get 'Super User' rights, so at the 'user' command prompt (the directory name 'user' will be replaced by user's directory):

user@linux:~>

type:

su

and press ENTER. Now enter the root password and press ENTER. We now have the SU rights needed to install RPMs. To install the Wine-20041019 file, at the root command prompt:

linux:/home/user #

type:

rpm -Uvh wine-20041019-SuSELinux92.i586.rpm

The results may resemble something like this:

warning: wine-20041019-SuSELinux92.i586.rpm: V3 DSA signature: NOKEY, key ID
0175623e
Preparing... ########################################### [100%]
1:wine ########################################### [100%]

(N.B. A sample copy of the entire terminal run can be found here:
http://gnulinuxsuse.blogspot.com/2005/10/wine-install-from-terminal.html
at Wine Install From Terminal for purposes of reference. Though the entire install is not performed soley from terminal command line, leaving the Konsole open will return results in the Konsole window even while using the WineTools gui menu.)

and to install the WineTools-2.1.2-jo file, at the root command prompt type:

rpm -Uvh winetools-2.1.2-jo.i386.rpm

The results may resemble something like this:

Preparing... ########################################### [100%]
1:wine ########################################### [100%]
which: no Xdialog in (/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin)

we need to exit the SU mode and go to standard user mode. N.B. This standard user mode is needed to continue with the configuration properly. *** DO NO CONTINUE IN SUPER USER MODE!!! ***, at the root command prompt type:

exit

we need to setup the main /.wine directory folder in the ~/home/user directory, at the standard user command prompt

user@linux:~>

type:

wine

the /.wine directory is a hidden folder/file and won't be seen if the 'Show Hidden Files' has not been turned on from the file manager. Using Konqueror as the file manager, I will use the top tabs and choose 'View' and tick 'Show Hidden Files', the shadded /.wine directory should now be seen in the ~/home/user directory

C. Setting up the Base Setup files & Windows System Software:
We are now going to setup the Wine-20041019 using WineTools-2.1.2-jo. The Base Setup will create the fake C Windows drive, TrueType Fonts, DCOM98, Microsoft Foundation Classes 4.0, and Internet Explorer 6.0 SP1. The System Software will consist of the necessary Windows Installer, Visual Basic 5 & 6 Runtime files, Visual C++ run-time, MDAC 2.8 & Jet 4.0 SP8, MSXML 4.0 SP2, Windows Script 5.6, and Common Controls 5.0.

we will now bring up the WineTools 2.1.2 menu to run the base configuration, at the command prompt

user@linux:->

type:

wt2

some '*** NOTICE ***' pop-up windows will show; the first for approval to copy the necessary WineTools config files, click 'Yes'; the second confirming the save, click 'OK'; the third is the 'About WineTools' window, click 'OK'; the fourth is the 'Intro' with the EULA, click 'OK' and the main WineTools 2.1.2 menu will appear

1. Base Setup
at the WineTools 2.1.2 main menu highlight 'Base setup' and click 'OK' and the 'Base setup' menu will appear

i. Create a fake Windows drive
highlight 'Create a fake Windows drive' and click 'OK'; a series of pop-up windows will appear, the first will ask for permission to remove the existing Wine configuration, click 'Yes'; the second wants to confirm the mount point of the cdrom/dvd drive, click 'OK'; the third wants to confirm the 'username', click 'OK'; the fourth wants to confirm the organization, click 'OK'; WineTools will now create the fake Windows drive; the fifth will confirm its creation, click 'OK' and the 'Base setup' menu will reappear

ii. TrueType Font Arial
(won't download past 3%, may need manual download and install from:
http://mesh.dl.sourceforge.net/sourceforge/corefonts/arial32.exe
File: arial32.exe - 554 KB
needs step-by-step install information if able to install from WineTools 'Base setup' menu)

iii. DCOM98
highlight 'DCOM98' and click 'OK'; WineTools will download the DCOM98 file from the internet and two windows will pop-up, the first will ask for confirmation to install DCOM98 for Windows 98, click 'Yes'; the second will show the EULA, click 'Yes' and WineTools will install DCOM98 after which the 'Base setup' menu will reappear

iv. Microsoft Foundation Classes 4.0
highlight 'Microsoft Foundation Classes 4.0' and click 'OK'; WineTools will now download the Microsoft Foundation Classes 4.0 from the internet and install it after which the 'Base setup' menu will reappear

v. Microsoft Internet Explorer 6.0 SP1 English
highlight 'Microsoft Internet Explorer 6.0 SP1 English' and click 'OK'; a pop-up window will confirm the install of 'IE6' (Internet Explorer) and 'Media Player 6.4', click 'OK' and WineTools will download the components from the internet and then install them from the internet; another pop-up window will appear showing the directory of stored software scripts for 'IE6', 'outlookexpress' (Outlook Express), and 'wmplayer' (Windows Media Player 6.4), click 'OK'; after a few minutes a last pop-up window will ask to save downloaded files for later, click 'Yes' and the 'Base setup' menu will reappear

vi. Add printcap (non CUPS) printers
highlight 'Add printcap (non CUPS) printers' and click 'OK'; a pop-up window confirm the ppd-file path, click 'OK'; a pop-up window will confirm the number of printers added to your congifuration, click 'OK' and the 'Base setup' menu will reappear; click 'Main menu' to return to the main WineTools menu
(details created without printers attached, need to re-confirm details with printers attached)

2. Install Windows system software
at the WineTools-2.1.2-jo main menu highlight 'Install Windows system software' and click 'OK' and the 'System Software' menu will appear

i. Windows Installer
highlight 'Windows Installer' and click 'OK'; a pop-up windows will appear, stating that the installation could prevent much older software from being installed and asking for confirmation to continue, click 'Yes' and WineTools will download and install the 'Windows Installer' software after which a pop-up window will confirm the installtion, click 'OK' and the 'System Software' menu will reappear

ii. Visual Basic 5 Runtime
highlight 'Visual Basic 5 Runtime' and click 'OK'; WineTools will download the software from the internet and a pop-up windows will appear, asking for confirmation to install 'VB Runtime', click 'Yes'; the installation will continue and a pop-up window will confirm its complete installation, click 'OK' and the 'System Software' menu will reappear

iii. Visual Basic 6 Runtime
highlight 'Visual Basic 6 Runtime' and click 'OK'; WineTools will download the software from the internet and a pop-up windows will appear, asking for confirmation to install 'VB Runtime', click 'Yes'; the installation will continue after which the 'System Software' menu will reappear

iv. Visual C++ run-time English
highlight 'Visual C++ run-time English' and click 'OK'; WineTools will download the software from the internet and a pop-up windows will appear with the 'VCRedist Installation' EULA, click 'Yes' and WineTools will install VCRedist; a pop-up window will appear asking to reboot the computer now or later, click 'Yes' to reboot now (N.B. The computer will NOT actually reboot, this is a simulated WineTools reboot) after which the 'System Software' menu will reappear

v. MDAC 2.8 and Jet 4.0 SP8 English
highlight 'MDAC 2.8 and Jet 4.0 SP8 English' and click 'OK'; a pop-up window will remind that MDAC will install twice only after which MDAC and Jet will be fully installed, click 'OK' and the EULA window will pop-up, tick 'I Accept' and click 'Next'; a second window will appear confirming the install of MDAC, click 'Finish'; the next window will confirm that MDAC is installed, click 'Close'; the next window will show the EULA for Jet, click 'Yes' and Jet will install; another window will pop-up for the second installation of MDAC, the EULA window is showing, tick 'I Accept' and click 'Next'; a second window will appear confirming the install of MDAC, click 'Finish'; the next window will confirm that MDAC is installed, click 'Close' and ; the 'System Software' menu will reappear

vi. MSXML 4.0 Service Pack 2 English
highlight 'MSXML 4.0 Service Pack 2 English' and click 'OK'; WineTools will download the software from the internet and a pop-up windows will appear with the 'Parser and SDK Setup Wizard', click 'Next'; the next window will show the EULA, tick 'I Accept' and click 'Next'; the confirmation for installation window will appear, click the square icon to the left of "Install Now'; the next window will confirm the 'User Name' and 'Organization', click 'Next'; WineTools will now install the software; the final window will confirm the installation of the software, click 'Finish' and the 'System Software' menu will reappear

vii. Windows Script 5.6 English
highlight 'Windows Script 5.6 English' and click 'OK'; WineTools will download the software from the internet and a window will pop-up asking for confirmation to install of the software, click 'Yes' and the EULA window will appear, click 'Yes' and WineTools will install the software; a window will pop-up confirming the installation is complete, click 'OK' and the 'System Software' menu will reappear

viii. Common Controls 5.0
highlight 'Common Controls 5.0' and click 'OK'; WineTools will download the software from the internet and a window will pop-up asking for confirmation to install of the software, click 'Yes' and the EULA window will appear, click 'Yes' and WineTools will install the software; a window will pop-up confirming the installation is complete; a pop-up window will appear asking to reboot the computer now or later, click 'Yes' to reboot now (N.B. The computer will NOT actually reboot, this is a simulated WineTools reboot) after which the 'System Software' menu will reappear, click 'OK' and the 'System Software' menu will reappear, click 'Main menu' to return to the main WineTools menu

D. Installing TrueType Fonts:
We are now going to install 10 needed fonts, (the fonts are needed by many Microsoft programs). These fonts will be installed for use in Wine, they are not being install for the entire GNU/Linux system as a whole.

highlight 'Install Microsoft TrueType core fonts' and click 'OK';
(needs step-by-step install information)

E. Installing Supported and Non-Supported Software:
WineTools-2.1.2-jo supports over 80 programs, some of which freely download when installing with the WineTools menu and some of which require the original licensed CDROM. This portion of the tutorial will not show all the supported software installs but will give general overall information on how to install some supported software. A list of WineTools-2.1.2-jo supported software can be found here: http://www.von-thadden.de/Jochim/WineTools/wt212jo.html. This tutorial will be a guide through some back-door steps of using the WineTool menu to install some non-supported software. N.B. Not all Microsoft software is guaranteed to work or work well using WineTools nor even with the use of Wine in its raw form. The best way to find out if a Microsoft program will work with Wine is to attempt to install it then take it through its entire run.

1. Supported Software
asupported software can be installed in two ways; downloaded freely from the internet or installed from a licensed CDROM both of which are accessed using the WineTools-2.1.2-jo menu, highlight 'Install tested software' and click 'OK'; the 'Additional Software' menu will appear; (Much of the software will freely download from the internet (i.e., Mircrosoft's Word, Excel, and PowerPoint Viewers, etc.) but some will require installation from the original licensed CDROM (i.e., Microsoft's Office suites, etc.)) Choose a catagory by clicking on the box to the left of the catagory name. This will expand the catagory and reveal a listing of software to install. Choose a software to install and double-click on it, this will initiate the installation process. Unless there is familiarity with the structure of Wine installations, default recommendations should always be observed. Programs installing in the 'C:/Program Files/' directory when using Wine or WineTools will install only in the fake Windows C drive (~/home/user/.wine/drive_c/Program Files) and will not affect any existing TRUE Windows partitions or drives

i. From the internet
(needs detailed step-by-step information)

ii. From licensed CDROM
(needs detailed step-by-step information)

2. Non-Supported Software
non-supported software can be installed in various ways, with the WineTools-2.1.2-jo menu or using terminal/Konsole; and using *.exe installers or non-installers; any of which may or may not install for any given program. An attempt to install should first be made with the WineTools-2.1.2-jo menu, the program will then be listed in the Wine Application Uninstaller; if unsuccessful, then attempt to install using termianl/Konsole. With the WineTools-2.1.2-jo menu; at the main WineTools-2.1.2-jo menu, highlight 'Install tested sotware' and click 'OK'; the 'Additional Software' menu will appear; a program must be found among the list of the 'tested software' that will require a CDROM to install from

As an example: go to 'Player' and double-click the 'QuickTime Player 5.0'; a pop-up window will appear stating the requirement for a CDROM, click 'OK'; another pop-up window will appear asking if the default program is to be installed, click 'No'; the 'Select File' window will appear showing the fake Windows C drive directory; ascend two directories to ~/home/user and browse for the file from directory to install, or browse for the mounted CDROM, then browse for the file from CDROM to install from. After the install (if successful) a final pop-up window will appear stating that the install 'failed', this is due to choosing to install a 'supported software' by name and attempting to install something else

From Terminal/Konsole
; we need to go to the directory where the installer is stored (preferably ~/home/user), using Konqueror as the file manager we go to ~/home/user; using the tabs at the top, we go to 'Tools' > 'Open Terminal' (or just press the F4 key); at the standard user command prompt: *** DO NOT INSTALL IN SUPER USER MODE/ROOT!!! ***

user@linux:~>

type:

wine program.exe

the program should install. If it the install is not successful, exhausting all efforts, then the program is not compatible with Wine. Though a program successfully installs, it may not function well, the program should be taken through its entire run to find gliches and bugs

i. From file on directory
(needs pre-info)

a. installers
(uninstalling)

b. non-installers
(needs detailed step-by-step information)

ii. From CDROM
(needs detailed step-by-step information)

F. Setting Up Shortcuts and Quicklaunches:
These are the procedures and what they will include.

1. KMenu Shortcuts
(icons (xpm, png, etc.) and shortcuts (.desktop, etc.) found at:
~/home/user/.local/share/applications
~/home/user/.kde/share/applnk
~/tmpk

needs detailed step-by-step information)


2. Desktop Shortcuts
(needs detailed step-by-step information)

3. Quicklaunches from /bin
(needs detailed step-by-step information)

G. Additional Tweaks and Hacks
This portion will contain addition tweak information not found above

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?