============Dealing with Exec Permissions=============
There are several reasons why this could've happened; If you downloaded from linuxpackages.org, maybe the package has an issue, or if you compiled yourself there may be other stuff involved. Now, a self-compiled package should show up like:
-rwxr-xr-x 1 root root 2021120 2007-02-26 15:36 /usr/bin/e16
for instance (I don't have
wine on this box, but e16 is something I compiled myself and use for real);
I don't know what's your level of knowledge either, so let's take it from the basics:
should return something like /usr/bin/wine or /usr/local/bin/wine something like that. You may even have several outputs, or the main one being a link, here follows a sample with the Gimp:
Code:
jphs@Slack266:~$ whereis gimp
gimp: /usr/bin/gimp /etc/gimp /usr/lib/gimp
/usr/X11R6/bin/gimp /usr/bin/X11/gimp /usr/X11/bin/gimp
/usr/share/gimp /usr/man/man1/gimp.1.gz /usr/share/man/man1/gimp.1.gz
/usr/X11/man/man1/gimp.1.gz
I found Gimp! Good! let's check permissions:
Code:
jphs@Slack266:~$ ls /usr/bin/gimp -l
lrwxrwxrwx 1 root root 8 2008-03-26 14:40 /usr/bin/gimp -> gimp-2.4
Oooops, it's a link, it isn't the real stuff: noticed the
-> gimp-2.4 thingy? Let's try again with the link's target:
Code:
jphs@Slack266:~$ whereis gimp-2.4
gimp-2: /usr/bin/gimp-2.4 /usr/X11R6/bin/gimp-2.4 /usr/bin/X11/gimp-2.4 /usr/X11/bin/gimp-2.4 /usr/include/gimp-2.0
gotcha!
now for the actual check, let's list (ls -l) its properties:
Code:
jphs@Slack266:~$ ls /usr/bin/gimp-2.4 -l
-rwxr-xr-x 1 root root 3738356 2007-10-24 16:01 /usr/bin/gimp-2.
So far, so good with
my gimp at least: noticed the three
X's? They mean
Owner,
Group AND
Anybody can e
Xecute the application; If your wine looks like
Code:
-rwxr--r-- 1 root root 3738356 2007-10-24 16:01 /path-to-your-wine/
then you miss this feature, and you must do:
Code:
su -
[password]
chmod +x /path-to-your-wine/
&&
check that the x-for-execute parameter has been passed by doing
Code:
ls /path-to-your-wine/ -l
============Setting up the .wine folder=============
[a folder's name starting with a . is an invisible folder, don't forget to tick "show invisible folders" in your filebrowser of choice!]
Now issues with wine involves the fake C drive and where it's located; if your wine install failed to create a
.wine directory in your end-user (non-root) home folder, then again there's a problem with the way wine installed itself; the poor hacker's way of dealing with that would be to, as root, copy this
.wine folder from the
root folder into the intended home account, and then do something as root like:
Code:
chown -R [end-username] /home/[end-username]/.wine
chgrp -R users /home/[end-username]/.wine
chmod -R 755 /home/[end-username]/.wine
To try it out, just browse your .wine folder to find notepad.exe and try to fire it up with either the proper command line like
Code:
wine /home/[end-username]/.wine/[path to notepad]/notepad.exe
or right-click-select "open with" if you are in konqueror, and even sometimes double-clicking does it (well, not for me on my Fedora workstation but others seems to be more lucky than I am).
This way you'd be sure your wine is sane from a non-root user' perspective, and you can start fighting your way trough making exe apps actually working on your 'Nix box. A general recommendation of me: do it all from within this .wine folder, copy your executables at the right place inside the fake ~/.wine/c_drive/... in a micro$oft way, including the installers for bigger softs: that is key to eliminate the
"where can wine work/how make the soft believe it's in a win-box" issue.
Again, that is key: your wine install may be good, but you are forced to go root because your are not working from the proper location & need to be root-ed to... be able mess around your entire hard drive!
Cheers.
If this was completely unusefull because far too obvious for you, well, sorry then, and let's say it may be worth reading for someone else with less experience
