PDA

View Full Version : winetricks.....



Aruza
21st August 2008, 01:21 AM
Hello this is my first post on these forums so im hoping to get some responses :)
I have just installed fedora for the first time, after having a little bit of experience with ubuntu.
i have fallen in love with a chat program called digsby and in order to get that to work you have to install wine and use winetricks to install dot net and a driver, at least in ubuntu (see this forum post, Here (http://ubuntuforums.org/showthread.php?t=767072) )

when i try similar steps in Fedora Core 9 i can get as far so opening winetricks to install dot net and i get this error.
"Winetricks error: wine cmd.exe /c echo '%ProgramFiles%' returned empty string"

Any thoughts?

Thanks
Aruza

carpetfeller
21st August 2008, 01:46 AM
It sounds like you need to assign your program files directory to the %ProgramFiles% string. But I don't recall how to do this in WinDOS.

carpetfeller
21st August 2008, 01:56 AM
Try this:



wine cmd ->

regedit ->

navigate to: My Computer/HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/Session Manager/Environment ->

Does the value ProgramFiles exist? If not: Right click -> New -> String Value -> Set its name to: ProgramFiles and its value to: c:\Program Files

Just a guess but I think it will work and it won't break anything.

Aruza
21st August 2008, 01:58 AM
alright, tried that and there was an entry for program files.....was a good thought though, i thought we had it.
Thanks

ValHolla
21st August 2008, 02:11 AM
I have never used digsby, but looking at the website, it appears to look very similar to pidgin (http://www.pidgin.im) (gnome) and Kopete (http://kopete.kde.org/) ( kde ) although each will run just fine on the other.

if you want the social engineering sites, i.e. myspace and facebook etc. there are Plugins (http://developer.pidgin.im/wiki/ThirdPartyPlugins)

I use pidgin, sudo yum -y install pidgin purple-plugin_pack purple-plugin_pack-pidgin purple-plugin_pack-pidgin-xmms

but I don't use the social engineering websites.

if you really want to use digsby if pidgin or kopete is not going to work for you,
...
the error you stated "usually" means that wine is not setup for your account.

run winecfg at the cli you can get info on the command Here (http://winehq.org/site/docs/wineusr-guide/config-wine-main)

after that, try your .NET install with winetricks again.
please post back with your results.

carpetfeller
21st August 2008, 02:16 AM
What happens when you type:

echo %ProgramFiles%
from within cmd?

ValHolla
21st August 2008, 02:20 AM
winetricks is actually running


wine cmd.exe /c echo "%ProgramFiles%"

if you run that on the cli, what does that return for you?

ValHolla
21st August 2008, 02:21 AM
sorry, for the double post with carpetfeller, looks like he beat me to the post.

Aruza
21st August 2008, 03:03 AM
Ok here we go.
i navigate in command line to the ...system32 folder and do the following
wine cmd.exe

i get this "wine: could not load L"C:\\windows\\system32\\cmd.exe": Module not found"

Could that mean that wine isnt installed correctly?

ValHolla
21st August 2008, 03:09 AM
that would be my guess, how did you install wine?

run

sudo yum -y remove wine; sudo yum -y install wine
and try it again.

ValHolla
21st August 2008, 03:11 AM
opps, wrong command....


sudo yum -y erase wine; sudo yum -y install wine

Aruza
21st August 2008, 03:16 AM
grrrrr... when i try that i get "User is not in the sudoers file. This incident will be reported."

thanks everyone for your help. im a noob to Fedora so still learning.

carpetfeller
21st August 2008, 03:17 AM
what happens when you type:
wine /usr/lib/wine/cmd.exe.so
?

Aruza
21st August 2008, 03:22 AM
i get this
"wine: cannot find '/usr/lib/wine/cmd.exe.so'"

carpetfeller
21st August 2008, 03:24 AM
how about:


cd /usr/lib/wine
ls
?

Aruza
21st August 2008, 03:26 AM
i get a whole list of items but none of them are cmd.exe

carpetfeller
21st August 2008, 03:30 AM
I would reinstall wine and then run winecfg before anything else. I'm stumped.

Aruza
21st August 2008, 03:31 AM
lol Thanks for your help.
How exactly do i uninstall wine?

carpetfeller
21st August 2008, 03:33 AM
Did you compile it from source or rpm?

Aruza
21st August 2008, 03:36 AM
i did a yum install wine

carpetfeller
21st August 2008, 03:38 AM
su - root
enter password
yum remove wine

Aruza
21st August 2008, 03:39 AM
hmmm interesting, its says

No Match for argument: wine
No Packages marked for removal

carpetfeller
21st August 2008, 03:41 AM
To fix your sudo problem:

as root:

add this line to /etc/sudoers:

yourusername ALL=(ALL) NOPASSWD: ALL

carpetfeller
21st August 2008, 03:45 AM
how about

yum list all | grep wine

Aruza
21st August 2008, 03:46 AM
i feel like suck a noob.
i have no idea how to edit that file.

Aruza
21st August 2008, 03:48 AM
ahh ok it was wine-core not just wine that i had to remove

carpetfeller
21st August 2008, 03:49 AM
There is a graphical utility to edit sudoers but I don't know what it is.

Aruza
21st August 2008, 03:51 AM
ok i removed wine-core and redid the "yum install wine" now it is going through and downloading and installing new things. I think i may have only partially installed wine. i will see and post my results

carpetfeller
21st August 2008, 03:57 AM
Sounds like you're on the right track. I hope it works for you.

While you are waiting:

su - root
enter password
nano /etc/sudoers
add the line:
yourusername ALL=(ALL) NOPASSWD: ALL
anywhere in the sudoers file
save and exit

ValHolla
21st August 2008, 06:49 AM
to edit the sudoers file.. don't edit it directly... if you make a mistake in syntax it will break it.

do the following


su -
Enter Password for root

/usr/sbin/visudo

once you are in the "vi" session
type the following


G
o
yourusername ALL=(ALL) NOPASSWD: ALL
<esc>
:wq!
it is capital G that will jump you to the end of the file
lower case "o" that will put you in "edit mode" on the line just below the cursor
enter the yourusername line

<esc> is the escape character will take you out of "edit mode"
:wq! is force write and quit i.e. save and quit

after that you should be able to type sudo {cmd} and it will run {cmd} as the root user

to make sure you get all of wine removed. type sudo rpm -qa |grep -i wine
if anything returns from that, remove it with yum remove

carpetfeller
23rd August 2008, 02:30 PM
Did it work?