[Wine] Re: New to Wine

motub wineforum-user at winehq.org
Sat Oct 16 12:46:37 CDT 2010

Drew0621 wrote:
> The OS I'm running is Linus Ubuntu 10.10. I don't know if it's the beta of it, or if it's the official release. my brother put this operating system on when my computer crashed.
> My brother helped me install wine, and I downloaded some of the files, and right clicked and open through wine, but it's saying that my files are non executable.
OK, what's happening here is that you're mixing several problems together, and all of them are not to do with Wine.

We started with 

1. Trying to install 
-- Diablo 2
-- iTunes
and "it's" telling you to go through Wine and you didn't know how.

This is a question appropriate to Wine-users.

Then came 

2. Trying to install or run
-- unspecified exe files (apparently via the file manager, if you right-clicked and chose "open through wine" in the context menu, which if nothing else confirms that Wine is installed, but not that it is configured)
and "it's" (the same "it" or a different "it"?) saying that the files are non-executable.

This is also a question appropriate to Wine-users.

Then we had

3. Trying to download 
and not being able to find the downloaded installer.

This is not a question appropriate to Wine-users, so I'm going to ignore it (especially since I don't use Google Chrome browser anyway). Although I will say that perhaps you'd like to consider using a native Linux Gnutella client in place of Limewire (kill two birds with one stone, as it were).

As to the first question (trying to install Diablo 2 and itunes), I would suggest that you first become comfortable with working via the terminal. Wine is much more comprehensible that way. 

So let's start with Diablo 2. I assume that you're trying to install this game from a physical CD inserted into your CD\DVD-ROM. Please correct me if this is not the case, but I'm going to proceed as if it is.

In this case, the "problem" is most likely that Wine is not aware of your CD/DVD-ROM drive. So the first thing we want to do is check if that is the case or not, and fix it if it is.

So open a terminal (you should be able to find it under the Applications==> Accessories menu in the main Gnome panel, and probably under a similar menu if Ubuntu has a "Start" menu in the lower panel).

Type "winecfg" (without the quotes) and hit Enter. If all is well, you should get the Wine configuration dialog. At this point, we don't know if Wine has even been set up, so go to the "Sound" tab and make sure that a sound system is selected. If one isn't, you'll get a message from Wine saying that it's chosen one for you and that you should click the "Apply" button to accept that choice. Even if you don't get such a message, make sure that ALSA is selected and hit "Apply" just to be safe.

You might also want to go to the "Desktop Integration" tab and confirm that all of the "Windows known" folders ("My Documents" "My Pictures" "Desktop", etc) point to the correct locations in your /home folder.  I only mention because until very recently I was using Linux Mint (based on Ubuntu 9.10) and every time I created a new WINEPREFIX, the "My Documents" link always pointed to the /home folder itself, rather than to /home/my_user/Documents which already existed. Because I run a number of games that place sub-folders in "My Documents", I needed to correct the link manually, and you might also. Consider it practice for the next step.

Now you want to go to the "Drives" tab. You probably have only C:\ and Z:\ listed. C:\ points to a folder in your /home/user/.wine directory and replicates Windows C:\ drive. Z:\ is a Unix link that allows you to access the rest of the filesystem (although much of that filesystem is only accessible to the root user, who will never be running Wine, but whatever).

If your CD/DVD-ROM does not appear, try clicking the "AutoDetect" button to find any CD/DVD-ROM drives or additional mounted HDD partitions. If all you have additionally is that CD/DVD-ROM drive, it will probably appear as D:\. If so, click "Apply" and you're good to go.

If it does not, then click "Add" to add a D:\ drive, and use the Properties/Browse button to set the drive to /media/cdrom0 (which I'm guessing is the location of your CD mount). Then hit "Apply".

NOTE: According to the AppDB entry for Diablo II (http://appdb.winehq.org/objectManager.php?sClass=version&iId=49), for each cdrom drive letter, click advanced, and set the drive type from automatic to cdrom. So do that prior to clicking "Apply"

At this point, we're done with winecfg, but do me a favor and go to the "About" tab and just post here what version of Wine you have.

Hit OK to close winecfg and return to the terminal.

Assuming your Diablo2 cd is in the drive, type "cd /media/cdrom0" (without the quotes) and hit Enter. In the terminal, you should have just changed directory to the CD. Type "ls" (without the quotes) and hit Enter to see a list of the files in the root folder of the CD. What we want to know is "what is the name of the setup.exe for Diablo 2?". For the purposes of this post, I'm going to pretend that the setup is called d2setup.exe, but you should look at your output to see what the real name is.

At this point, you should be able to type "wine d2setup.exe" (without the quotes and with the actual exe name replacing "d2setup.exe") and the installer should begin to install Diablo 2. If any problems are encountered that prevent the installer from running, or completing, the terminal will with any luck reflect that in the output (which you can then copy and post to ask how to resolve).

Another NOTE from the AppDB entry for Diablo II (http://appdb.winehq.org/objectManager.php?sClass=version&iId=49): For running the multi-disk install, it helps to run the install using the drive letter and to not switch your shell to the cdrom's path. For example:
~/.wine/drive_c$ wine "D:\setup.exe" (where D: is the assigned letter of your CD drive).
If you run while having a current working directory of /mnt/cdrom, for example, then you will lock the drive and you won't be able to eject the disk.

OK, so after you've gotten the name of the setup.exe from the ls command, then (before starting the setup) type "cd ../" (without the quotes) and hit Enter to move the shell up one file level. This way you won't be "in" the CD when it wants to be ejected. Then run "wine "D:\\d2setup.exe"" (without the outside set of quotes, and using the correct drive letter for your CD\DVD-ROM drive, and the correct name for the setup.exe).

Diablo 2 is listed as "Platinum" (meaning that it installs and runs out-of-the-box without any special extra installation), so I wish you many hours of fun playing it.

Hopefully getting that installed will give you insight into how you can install iTunes and the other programs you're trying to get installed, but if not, come on back when you get to that point.

Hope this helps.

More information about the wine-users mailing list