Click to See Complete Forum and Search --> : Need a little help with wine


cereal83
03-18-2004, 01:03 PM
Hey all, been away from here and Linux for a while but I missed it so I am back :D

Anyways, I installed wine but I really dunno how to get a program to run. I went to the homepage and read around but still dunno.

Anyways, what is the command to run a program? Like I am trying to run Winamp (just to test out wine) what command would I do?

I tried "wine c:\program files\Winamp\winamp.exe" but it doesn't work. I even tried "wine winamp.exe" and
"wine /mnt/win_d/Program Files/Winamp/winamp.exe" still don't work.

Any help would be great.

Thanks

serz
03-18-2004, 01:09 PM
Post the errors you're getting please.

mdwatts
03-18-2004, 01:17 PM
Lots of Wine related tutorials (http://justlinux.com/forum/search.php?s=&action=showresults&searchid=909640&sortby=lastpost&sortorder=descending) posted in the 'How I did it' forum that should help.

cereal83
03-18-2004, 01:22 PM
Originally posted by serz
Post the errors you're getting please.


[pinter@localhost pinter]$ wine /mnt/win_d/ProgramFiles/Winamp/winamp.exe
Error: nosuchdir '/mnt/win_d/ProgramFiles/Winamp'


Usage: wine [options] [--] program_name [arguments]

You must quote program_name and each argument
if they contain spaces or winstyle paths

The -- has to be used if you specify arguments OR options

Options:
--debugmsg name Turn debugging-messages on or off
--dll name Enable or disable built-in DLLs
--help,-h Show this help message
--version,-v Display the Wine version

[pinter@localhost pinter]$

[pinter@localhost pinter]$ wine winamp.exe
wine: cannot find 'winamp.exe'
[pinter@localhost pinter]$

[pinter@localhost pinter]$ wine c:\programfiles\Winamp\winamp.exe
Warning: could not find wine config [Drive x] entry for current working directory /var/lib; starting in windows directory.
wine: cannot find 'wineprogramfilesWinampwinamp.exe'
[pinter@localhost pinter]$

After reading the last error, I think I might have to configure it. Do I? Or am I just writing down the commands wrong?


I will also get out that link with the man pages

mdwatts
03-18-2004, 01:41 PM
Did you read


You must quote program_name and each argument
if they contain spaces or winstyle paths


??

I do know for a fact that some of those Wine related tutorials in the link I posted above contain examples on how to execute Window programs with Wine. Have you had a look through any of them yet?

mdwatts
03-18-2004, 01:48 PM
Two examples from those search results I posted. One is using the backslash and the other double quotes for directory names containing spaces.

wine /home/<username>/.wine/fake_windows/Program\ Files/EditPlus\ 2/editplus.exe

wine /home/pete/.wine/fake_windows/”Program Files”/WinZip\ /winzip32.exe

asklepios
03-18-2004, 02:37 PM
you seem to have not read much about configuring wine and how to get it running.
imo you should first go and read as much documentation as possible.
http://www.winehq.com/site/documentation
don't even thing about using wine from a package. get source code and work from there. use wineinstall script in your source rather than compiling your self (make install <-- it sucks).
check your config file's correctness with winecheck untill you get atleast above 95% of correctness. once you achieve that visit
http://www.frankscorner.org/
read the documentation related to whatever app you want to install from there. getting wine to work is really difficult but very satisfying :)

mdwatts
03-18-2004, 02:57 PM
Originally posted by asklepios
you seem to have not read much about configuring wine and how to get it running.
imo you should first go and read as much documentation as possible.

I certainly do agree !!!

Lots of Wine configuration guides posted in those 'How I did it' forum search results including examples of the Wine config.

cereal83
03-18-2004, 06:14 PM
sorry I took so long to reply.

I did look at the tutorials but just for "running wine" I installed it off of the Mandrake 10.0 cd so i thought it would do everything for me :confused:

I will check it all out again and read some more.

Thanks for the help

mdwatts
03-19-2004, 10:50 AM
Originally posted by cereal83
I installed it off of the Mandrake 10.0 cd so i thought it would do everything for me :confused:


According to what I've read in the JL forums on Wine, you either need to manually configure Wine yourself or run the winesetup script.

Homer119
03-19-2004, 11:45 AM
If i ever see Wine and Help in the same post you have a 75% chance of seeing this...so here it goes. If I were you I would start a new and reinstall Wine. Remember to save your programs before deleting the directory. Hope it works.

==============

First remove your prior WINE install

su
rm -r /.../.wine

(this will fully install WINEX) (just sub. winex for wine if you want to install wine)

start by typing this

mkdir /root/.wine
mkdir /root/.wine/c_drive
mkdir /root/.wine/c_drive/windows
mkdir /root/.wine/c_drive/windows/system
mkdir /root/.wine/c_drive/windows.system32
mkdir /root/.wine/c_drive/programs
mkdir /root/.wine/c_drive/windows/temp
mkdir /root/.wine/c_drive/windows/profiles/admin
mkdir /root/.wine/e_drive
mkdir /root/.wine/e_drive/windows
mkdir /root/.wine/e_drive/windows/system
mkdir /root/.wine/e_drive/windows.system32
mkdir /root/.wine/e_drive/programs
mkdir /root/.wine/e_drive/windows/temp
mkdir /root/.wine/e_drive/windows/profiles/admin

now type this-

cvs -d:pserver:anonymous@cvs.winex.sourceforge.net:/cvsroot/winex login

(Hit enter)-Now Type(make sure this is one line of code when u see a dropdown treat that as a space)

cvs -z3 -d:pserver:anonymous@cvs.winex.sourceforge.net:/cvsroot/winex co wine

Now type -(Five different codes)
Make sure you type yes for everything at the end of install)

cd /root/.wine
./tools/wineinstall
make depend
make install
make

Now type this

cp /root/.wine/config /root/



open the config file, you will see these lines of code

[wine]
"Windows" = "c:\\windows"
"System" = "c:\\windows\\system"
"Temp" = "c:\\windows\\temp"
"Path" = "c:\\windows;c:\\windows\\system;e:\\"
"Profile" = "c:\\windows\\Profiles\\Administrator"

delete them and put this in their place (just hightlight copy and paste on op of the other code)

[wine]
"Windows" = "/root/.wine/c_drive/windows"
"System" = "/root/.wine/c_drive/windows/system"
"Temp" = "/root/.wine/c_drive/windows/temp"
"Path" = "c:\\windows;c:\\windows\\system;e:\\"
"Profile" = "/root/.wine/c_drive/windows/profiles/admin"

now look around the config file and when you see

[Drive C] (it will be near the top of the code)

make sure the code under it reads

"Path" = "/root/.wine/c_drive"
#"Path" = "${HOME}/.wine/c"
"Type" = "hd"
"Label" = "MS-DOS"
"Filesystem" = "win95"

when you see

[Drive E]

make sure the code under it reads

"Path" = "/root/.wine/e_drive"
"Type" = "network"
"Label" = "Home"
"Filesystem" = "win95"

Now find

[Drive D]

and make sure the code under it reads

["Path" = "/mnt/cdrom"
"Type" = "cdrom"
"Label" = "CD-Rom"
"Filesystem" = "win95"
"Device" = "/dev/cdrom"

Now type

cp /root/config /root/.wine

and then type yes then hit enter to over write the file!

AND THE YOUR DONE!!!!

to run a windows file:

type wine then the file dir and name

EXAMPLE- if you have a windows file named Game.exe in your root folder type this

wine /root/Game.exe

and it will open!!!! have a good day


Your Welcome.

cereal83
03-19-2004, 12:35 PM
Thank you for a very detailed message. I will try this just as soon as I get home. I have 1 guestion. I have to move the folder off of my windows partition to my root partition? or does it auto find my windows partition and open it from there?

cereal83
03-19-2004, 12:57 PM
Ok I did everything so far up til the

cvs -z3 -d:pserver:anonymous@cvs.winex.sourceforge.net:/cvsroot/winex co wine

I try that, it asks for a password then I try anonymous and everything I can think of and it won't let me in

what do I do?

:(

mdwatts
03-19-2004, 02:02 PM
Try your email address.

asklepios
03-19-2004, 03:08 PM
Originally posted by cereal83
I try that, it asks for a password then I try anonymous and everything I can think of and it won't let me in

what do I do?

:( you really gotta start reading. don't mind me talking like that but did you read that loooooooooong post that Homer119 posted? it clearly mentioned there that you just press [Enter]. you don't type anything.

cereal83
03-19-2004, 06:33 PM
Originally posted by asklepios
you really gotta start reading. don't mind me talking like that but did you read that loooooooooong post that Homer119 posted? it clearly mentioned there that you just press [Enter]. you don't type anything.

then I just get this

root@localhost pinter]# cvs -d:pserver:anonymous@cvs.winex.sourceforge.net:/cvsroot/winex login
Logging in to :pserver:anonymous@cvs.winex.sourceforge.net:2401/cvsroot/winex
CVS password:
[root@localhost pinter]#

it doesn't do anything!

I also try the next thing and I get


[root@localhost .wine]# cvs -z3 -d:pserver:anonymous@cvs.winex.sourceforge.net:/cvsroot/winex co wine
cvs server: cannot find module `wine' - ignored
cvs [checkout aborted]: cannot expand modules
[root@localhost .wine]#

:confused: :(

cereal83
03-19-2004, 09:19 PM
bump ^^

mdwatts
03-20-2004, 10:54 AM
Does WineX have any instructions posted on their site that explain how to checkout and download through CVS?

mdwatts
03-20-2004, 11:01 AM
Just one of the JL forum search results for 'wine cvs'.

http://justlinux.com/forum/showthread.php?s=&threadid=118087&highlight=wine+cvs

One of the examples has

winex co winex

instead of

winex co wine

Another from that thread

1. cvs -d:pserver:cvs@cvs.transgaming.org:/cvsroot login
2. When prompted for the password enter "cvs"
3. cvs -z3 -d:pserver:cvs@cvs.transgaming.org:/cvsroot co winex

of which you can see the slight differences in the command.

All you have to do is search the JL forums to find examples of other possible cvs commands you can use.

cereal83
03-20-2004, 06:51 PM
ok I finally did everything as it said to a tea, now I just have to figure out how to run programs :(

Thanks all for your help