LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   wine $DISPLAY messed up for starcraft (https://www.linuxquestions.org/questions/linux-software-2/wine-%24display-messed-up-for-starcraft-484532/)

CamelofCamelot 09-18-2006 12:48 AM

wine $DISPLAY messed up for starcraft
 
So I'm trying to install starcraft. I went to frankscorner and found that I should run:

mkdir ~/starcraft
WINEPREFIX="/root/starcraft" wineprefixcreate
mount /dev/cdrom ~/starcraft/drive_c/cdrom
WINEPREFIX="/root/starcraft" wine ~/starcraft/drive_c/cdrom/install.exe

And it gives me this error:

[00:44][root@lappy:~]# WINEPREFIX="/root/starcraft" wine ~/starcraft/drive_c/cdrom/install.exe
err:imagelist:ImageList_ReplaceIcon no color!
err:imagelist:ImageList_ReplaceIcon no color!
err:imagelist:ImageList_ReplaceIcon no color!
err:imagelist:ImageList_ReplaceIcon no color!
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.

I am running this in an xterm with su - root, so I think that may be affecting it, but I can't run it as a user, because it's on my CD. Any ideas?

zhangmaike 09-18-2006 02:33 AM

Quote:

I am running this in an xterm with su - root, so I think that may be affecting it, but I can't run it as a user, because it's on my CD.
Why can't you use the CD as a normal user?

Just mount the CD as root, then get out of su and become the normal user again. Unless you have some strange options in your fstab that makes the files on the CD only readable by their owner (root), you should be able to read the CD as a normal user even though you must be root to mount it.

And, by all means, don't run wine as root! The only thing that root should be used for is system administration.

soggycornflake 09-18-2006 04:22 PM

Why do you need to be root to mount a CD? Add the 'users' option to the /etc/fstab entry and anyone can mount/unmount it.

CamelofCamelot 09-18-2006 07:50 PM

Ok, I did that. It still doesn't work.

$ WINEPREFIX="/home/nick/starcraft" wineprefixcreate
wine: Unhandled page fault on write access to 0x003ffd80 at address 0x608d03af (thread 0009), starting debugger...
wine: Unhandled page fault on write access to 0x003ffd80 at address 0x608d53af (thread 000b), starting debugger...
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x6000b3a3
wine: Unhandled page fault on write access to 0x003ffd80 at address 0x608d53af (thread 000d), starting debugger...
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x6000b3a3
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x6000b3a3

Thanks for the tidbit about /etc/fstab though.

zhangmaike 09-18-2006 09:39 PM

Well, at least the $DISPLAY thing is solved. It's a different problem now. ;)

Have you tried just installing without using wineprefix?

Just run winecfg, make sure everything looks okay in the drives and drivers, and then run wine nameofinstaller.exe from within the directory that nameofinstaller.exe is located.

CamelofCamelot 09-18-2006 10:11 PM

Ok, now when I run install.exe, it says in a GUI window: No program start menu found

I went onto winehq.com. I followed the instructions specifically for SC, got identical results. Also, I've noticed that my directories in ~/.wine are all empty, or contain empty directories.

zhangmaike 09-19-2006 01:30 AM

I'm guessing that there are some files/directories that are missing and need to be created, but because ~/.wine exists, wine is not creating them. Rename ~/.wine to something like old.wine, then run winecfg. It should re-create the .wine directory and add all files necessary automatically.

In winecfg, verify/change settings to your liking. After closing winecfg, verify whether ~/.wine has changed, and try your install.

CamelofCamelot 09-19-2006 01:36 AM

Same thing happens. Empty directories.

zhangmaike 09-19-2006 01:39 AM

That's odd.

After renaming .wine to wine.old and running winecfg, the following is the output or tree .wine:
Code:

.wine
|-- cachedmetrics.:0.0
|-- dosdevices
|  |-- c: -> ../drive_c
|  `-- z: -> /
|-- drive_c
|  |-- Program Files
|  |  `-- Common Files
|  `-- windows
|      |-- command
|      |  `-- start.exe
|      |-- fonts
|      |-- inf
|      |  `-- wine.inf
|      |-- notepad.exe
|      |-- profiles
|      |  |-- All Users
|      |  |  |-- Application Data
|      |  |  |-- Desktop
|      |  |  |-- Documents
|      |  |  |-- Favorites
|      |  |  |-- Start Menu
|      |  |  |  `-- Programs
|      |  |  |      `-- StartUp
|      |  |  `-- Templates
|      |  `-- zmk
|      |      |-- Application Data
|      |      |-- Cookies
|      |      |-- Desktop -> /home/zmk/Desktop
|      |      |-- Favorites
|      |      |-- Local Settings
|      |      |  |-- Application Data
|      |      |  |-- History
|      |      |  `-- Temporary Internet Files
|      |      |-- My Documents -> /home/zmk
|      |      |-- My Music -> /home/zmk
|      |      |-- My Pictures -> /home/zmk
|      |      |-- My Video -> /home/zmk
|      |      |-- NetHood
|      |      |-- PrintHood
|      |      |-- Recent
|      |      |-- SendTo
|      |      |-- Start Menu
|      |      |  `-- Programs
|      |      |      `-- StartUp
|      |      `-- Templates
|      |-- regedit.exe
|      |-- rundll32.exe
|      |-- system
|      |-- system.ini
|      |-- system32
|      |  |-- advapi32.dll
|      |  |-- advpack.dll
|      |  |-- cmd.exe
|      |  |-- comctl32.dll
|      |  |-- comdlg32.dll
|      |  |-- control.exe
|      |  |-- crypt32.dll
|      |  |-- d3d8.dll
|      |  |-- dbghelp.dll
|      |  |-- ddraw.dll
|      |  |-- drivers
|      |  |-- explorer.exe
|      |  |-- gdi32.dll
|      |  |-- hhctrl.ocx
|      |  |-- imaadp32.acm
|      |  |-- imagehlp.dll
|      |  |-- kernel32.dll
|      |  |-- msadp32.acm
|      |  |-- msg711.acm
|      |  |-- msi.dll
|      |  |-- msiexec.exe
|      |  |-- msvcrt.dll
|      |  |-- notepad.exe
|      |  |-- ntdll.dll
|      |  |-- ole32.dll
|      |  |-- oleaut32.dll
|      |  |-- olepro32.dll
|      |  |-- opengl32.dll
|      |  |-- progman.exe
|      |  |-- regsvr32.exe
|      |  |-- riched20.dll
|      |  |-- riched32.dll
|      |  |-- rpcrt4.dll
|      |  |-- shdocvw.dll
|      |  |-- shell32.dll
|      |  |-- shfolder.dll
|      |  |-- shlwapi.dll
|      |  |-- urlmon.dll
|      |  |-- user32.dll
|      |  |-- version.dll
|      |  |-- wininet.dll
|      |  |-- winmm.dll
|      |  |-- winspool.drv
|      |  |-- winver.exe
|      |  |-- ws2_32.dll
|      |  `-- wsock32.dll
|      |-- temp
|      |-- win.ini
|      |-- winebrowser.exe
|      `-- winhelp.exe
|-- system.reg
|-- user.reg
`-- userdef.reg

45 directories, 58 files

Could you post the output of the same command on your machine?
Code:

$ tree .wine

CamelofCamelot 09-19-2006 05:02 PM

Code:

$ tree .wine
.wine
|-- cachedmetrics.:0.0
|-- dosdevices
|  |-- a: -> /mnt/floppy
|  |-- c: -> ../drive_c
|  |-- d: -> /home/nick/.wine/drive_d
|  |-- e: -> /mnt/sda2
|  |-- f: -> /mnt/cdrom
|  |-- h: -> /home/nick
|  `-- z: -> /
|-- drive_c
|  `-- windows
|      |-- command
|      |-- fonts
|      |-- inf
|      |  `-- wine.inf
|      |-- profiles
|      |  `-- nick
|      |      |-- Desktop
|      |      |-- My Documents
|      |      |-- My Music
|      |      |-- My Pictures
|      |      `-- My Video
|      |-- system
|      |-- system32
|      |  `-- drivers
|      |-- temp
|      `-- win.ini
|-- drive_d
|  |-- autorun.inf -> /mnt/cdrom/autorun.inf
|  |-- bw.ico -> /mnt/cdrom/bw.ico
|  |-- install.exe -> /mnt/cdrom/install.exe
|  |-- isp -> /mnt/cdrom/isp
|  |-- setup.exe -> /mnt/cdrom/setup.exe
|  |-- smackw32.dll -> /mnt/cdrom/smackw32.dll
|  `-- support -> /mnt/cdrom/support
|-- system.reg
`-- user.reg

25 directories, 12 files


zhangmaike 09-19-2006 05:21 PM

OK, I'm certain that this is at least part of your problem. You are missing many system files and directories that wine requires to function. wine should be installing them automatically, though.

What version of wine are you using?
Code:

wine --version


All times are GMT -5. The time now is 11:04 PM.