Winetricks

Asked by MidNightStorm

When i try to run Winetricks i get this error

winetricks.1: 3717: cannot create /home/kasper/.wine/dosdevices/c:/winetrickstmp/zenity.sh: Permission denied
winetricks.1: 3717: cannot create /home/kasper/.wine/dosdevices/c:/winetrickstmp/zenity.sh: Permission denied
sh: Can't open /home/kasper/.wine/dosdevices/c:/winetrickstmp/zenity.sh

I have download winetricks as a txt file moved it to /home/"user"/

What am I doing wrong?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu wine Edit question
Assignee:
No assignee Edit question
Solved by:
MidNightStorm
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of:

cd /home; ls -la ./kasper

Thanks

Revision history for this message
MidNightStorm (kasperbj-63) said :
#2

Yeah ofcause
total 580
drwxr-xr-x 41 kasper kasper 4096 2010-05-14 18:28 .
drwxr-xr-x 4 root root 4096 2010-05-13 14:36 ..
drwx------ 3 kasper kasper 4096 2010-05-13 15:24 .adobe
-rw-r--r-- 1 kasper kasper 27026 2010-05-14 17:59 alsa-info.sh
-rw------- 1 kasper kasper 3534 2010-05-14 18:04 .bash_history
-rw-r--r-- 1 kasper kasper 220 2010-05-13 14:36 .bash_logout
-rw-r--r-- 1 kasper kasper 3103 2010-05-13 14:36 .bashrc
drwx------ 10 kasper kasper 4096 2010-05-14 17:46 .cache
drwx------ 3 kasper kasper 4096 2010-05-13 15:07 .compiz
drwxr-xr-x 15 kasper kasper 4096 2010-05-14 17:02 .config
drwx------ 3 kasper kasper 4096 2010-05-13 14:41 .dbus
drwxr-xr-x 4 kasper kasper 4096 2010-05-14 18:22 Desktop
drwxr-xr-x 2 kasper kasper 4096 2010-05-13 14:41 Documents
drwxr-xr-x 2 kasper kasper 4096 2010-05-14 16:48 Downloads
-rw------- 1 kasper kasper 16 2010-05-13 14:41 .esd_auth
drwxr-xr-x 4 kasper kasper 4096 2010-05-14 16:37 EVE
drwxr-xr-x 3 kasper kasper 4096 2010-05-13 14:51 .evolution
-rw-r--r-- 1 kasper kasper 179 2010-05-13 14:36 examples.desktop
drwxr-xr-x 2 kasper kasper 4096 2010-05-14 15:15 .fontconfig
drwxr-xr-x 3 kasper kasper 4096 2010-05-14 15:22 .fretsonfire
drwx------ 4 kasper kasper 4096 2010-05-14 18:02 .gconf
drwx------ 2 kasper kasper 4096 2010-05-14 19:25 .gconfd
-rw-r----- 1 kasper kasper 0 2010-05-14 17:48 .gksu.lock
drwx------ 8 kasper kasper 4096 2010-05-14 17:45 .gnome2
drwx------ 2 kasper kasper 4096 2010-05-13 14:42 .gnome2_private
drwxr-xr-x 2 kasper kasper 4096 2010-05-13 14:51 .gstreamer-0.10
-rw-r--r-- 1 kasper kasper 142 2010-05-14 17:46 .gtk-bookmarks
dr-x------ 2 kasper kasper 0 2010-05-14 17:46 .gvfs
-rw------- 1 kasper kasper 3150 2010-05-14 17:46 .ICEauthority
drwxr-xr-x 2 kasper kasper 4096 2010-05-14 14:44 .icons
drwx------ 3 kasper kasper 4096 2010-05-13 14:42 .local
drwx------ 3 kasper kasper 4096 2010-05-13 15:24 .macromedia
drwx------ 3 kasper kasper 4096 2010-05-13 14:51 .mission-control
drwx------ 4 kasper kasper 4096 2010-05-13 14:51 .mozilla
drwxr-xr-x 2 kasper kasper 4096 2010-05-13 14:41 Music
drwxr-xr-x 2 kasper kasper 4096 2010-05-13 14:41 .nautilus
-rw-r--r-- 1 kasper kasper 1962 2010-05-13 15:24 .nvidia-settings-rc
drwxr-xr-x 3 kasper kasper 4096 2010-05-13 14:44 .openoffice.org
drwxr-xr-x 2 kasper kasper 4096 2010-05-13 14:41 Pictures
drwxr-xr-x 10 kasper kasper 4096 2010-05-14 17:50 .PlayOnLinux
-rw-r--r-- 1 kasper kasper 675 2010-05-13 14:36 .profile
drwxr-xr-x 2 kasper kasper 4096 2010-05-13 14:41 Public
drwx------ 2 kasper kasper 4096 2010-05-14 18:02 .pulse
-rw------- 1 kasper kasper 256 2010-05-14 18:02 .pulse-cookie
-rw------- 1 kasper kasper 11044 2010-05-14 18:24 .recently-used.xbel
-rw-r--r-- 1 kasper kasper 0 2010-05-13 14:42 .sudo_as_admin_successful
drwxr-xr-x 2 kasper kasper 4096 2010-05-13 14:41 Templates
drwxr-xr-x 2 kasper kasper 4096 2010-05-14 14:44 .themes
drwx------ 4 kasper kasper 4096 2010-05-14 14:44 .thumbnails
drwxrwxr-x 2 kasper kasper 4096 2010-05-14 14:51 Ubuntu One
drwx------ 2 kasper kasper 4096 2010-05-13 14:42 .update-notifier
drwxr-xr-x 2 kasper kasper 4096 2010-05-13 14:41 Videos
drwxr-xr-x 4 kasper kasper 4096 2010-05-14 14:14 .VirtualBox
drwxr-xr-x 4 kasper kasper 4096 2010-05-14 18:29 .wine
-rw-r--r-- 1 kasper kasper 156711 2010-04-25 01:17 winetricks.1
drwxr-xr-x 2 kasper kasper 4096 2010-05-14 18:28 .winetrickscache
-rwxr--r-- 1 kasper kasper 160373 2010-05-14 18:24 winetricks.txt
-rw------- 1 kasper kasper 11704 2010-05-14 19:16 .xsession-errors
-rw------- 1 kasper kasper 8653 2010-05-14 17:45 .xsession-errors.old

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

ok looks like the script is whack:

can you give the output of:

file /home/kasper/.wine/dosdevices/c:/winetrickstmp/zenity.sh

file /home/kasper/.wine/dosdevices
file /home/kasper/.wine/dosdevices/c\:
file /home/kasper/.wine/dosdevices/c\:/winetrickstmp
file /home/kasper/.wine/dosdevices/c:/winetrickstmp/zenity.sh

Thanks

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

ok looks like the script is whack:

can you give the output of:

file /home/kasper/.wine/dosdevices
file /home/kasper/.wine/dosdevices/c\:
file /home/kasper/.wine/dosdevices/c\:/winetrickstmp
file /home/kasper/.wine/dosdevices/c:/winetrickstmp/zenity.sh

Thanks

Revision history for this message
MidNightStorm (kasperbj-63) said :
#5

1st
/home/kasper/.wine/dosdevices/c:/winetrickstmp/zenity.sh: ERROR: cannot open `/home/kasper/.wine/dosdevices/c:/winetrickstmp/zenity.sh' (No such file or directory)

2nd
/home/kasper/.wine/dosdevices/c:: symbolic link to `../drive_c'

3th
/home/kasper/.wine/dosdevices/c:/winetrickstmp: directory

4th
/home/kasper/.wine/dosdevices/c:/winetrickstmp/zenity.sh: ERROR: cannot open `/home/kasper/.wine/dosdevices/c:/winetrickstmp/zenity.sh' (No such file or directory)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Ok the only file you are missing is zenity.sh. I am not familiar with winetricks and as far as I know it is not an official package but you need that file to exist.

http://wiki.winehq.org/winetricks

Is how to install it properly

Revision history for this message
MidNightStorm (kasperbj-63) said :
#7

I have tried that.. it doesn't work.

I just says this:

Executing /usr/bin/cabextract -q --directory=/home/kasper/.wine/dosdevices/c:/winetrickstmp /home/kasper/.winetrickscache/arial32.exe
/home/kasper/.winetrickscache/arial32.exe: library not compiled to support large files.
/home/kasper/.wine/dosdevices/c:/winetrickstmp/FONTINST.EXE: Permission denied
/home/kasper/.wine/dosdevices/c:/winetrickstmp/fontinst.inf: Permission denied
/home/kasper/.wine/dosdevices/c:/winetrickstmp/Ariali.TTF: Permission denied
/home/kasper/.wine/dosdevices/c:/winetrickstmp/Arialbd.TTF: Permission denied
/home/kasper/.wine/dosdevices/c:/winetrickstmp/Arialbi.TTF: Permission denied
/home/kasper/.wine/dosdevices/c:/winetrickstmp/Arial.TTF: Permission denied
------------------------------------------------------
Note: command '/usr/bin/cabextract -q --directory=/home/kasper/.wine/dosdevices/c:/winetrickstmp /home/kasper/.winetrickscache/arial32.exe' returned status 1. Aborting.

Revision history for this message
Dawning (dawning) said :
#8

Winetricks is awesome.. Though somewhat hacky, I like it.

Maybe your "c:" drive in that path is not setup correctly. I'd first use winecfg to check out the config of that drive and see if it's sane...

Can you confirm that you can read/write to that location?

A test could be to run:
touch /home/kasper/.wine/dosdevices/c\:/testfile-deleteme

How's that go?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

Looks like the script needs tweaking

Instead of:
/home/kasper/.wine/dosdevices/c:

You need
/home/kasper/.wine/drive_c/

Will work better, the colon will need escaping as bash bash doesn't handle non alphanumeric characters too well. I'd contact the winetricks guys.

Revision history for this message
MidNightStorm (kasperbj-63) said :
#10

$ touch /home/kasper/.wine/dosdevices/c\:/testfile-deleteme

didn't give any output at all.
So i open the file browser and found the .wine dir. and i can read/write in all but the winetrickstmp folder.
But when i run the

$ sh winetricks corefonts

Executing /usr/bin/cabextract -q --directory=/home/kasper/.wine/dosdevices/c:/winetrickstmp /home/kasper/.winetrickscache/arial32.exe
/home/kasper/.winetrickscache/arial32.exe: library not compiled to support large files.
/home/kasper/.wine/dosdevices/c:/winetrickstmp/FONTINST.EXE: Permission denied
/home/kasper/.wine/dosdevices/c:/winetrickstmp/fontinst.inf: Permission denied
/home/kasper/.wine/dosdevices/c:/winetrickstmp/Ariali.TTF: Permission denied
/home/kasper/.wine/dosdevices/c:/winetrickstmp/Arialbd.TTF: Permission denied
/home/kasper/.wine/dosdevices/c:/winetrickstmp/Arialbi.TTF: Permission denied
/home/kasper/.wine/dosdevices/c:/winetrickstmp/Arial.TTF: Permission denied
------------------------------------------------------
Note: command '/usr/bin/cabextract -q --directory=/home/kasper/.wine/dosdevices/c:/winetrickstmp /home/kasper/.winetrickscache/arial32.exe' returned status 1. Aborting.

But then i would just use the sudo command it just tells me that i don't own that folder

[sudo] password for kasper:
wine: /home/kasper/.wine is not owned by you
------------------------------------------------------
You (root) don't own /home/kasper/.wine. Don't run winetricks as another user!
------------------------------------------------------

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

ok lets cover all bases:

cd /home; sudo chown -R kasper:kasper ./kasper

This will set the owner of your data to you. You will get errors from the special folders (like ~/.gvfs and such) which cannot be modified, but the rest will be fine

Revision history for this message
MidNightStorm (kasperbj-63) said :
#12

chown: cannot access `./kasper/.gvfs': Permission denied
So all is good

And hell yeah it looks like it is working now

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#13

Do you by any chance use commands like:

sudo nautilus

?

Revision history for this message
MidNightStorm (kasperbj-63) said :
#14

Nope

Revision history for this message
El Gato Parlante (gatoparlantoso) said :
#15

It happens because some folders were created -don't ask me how, in this case- as root.

Winetricks don't work as root because the owner of the folder .wine , is not root.

When winetricks (ran as user), attempts to write at ./home/edwin/.wine/dosdevices/*, obtains th

I had that trouble when installed wine via Synaptic, but I solved with no difficulty...

There are two ways to solve that kind of trouble:

1) Via chmod 777 /path-of-the-folder. (fastest) in a terminal,

or, Alt+F2, gksu nautilus, then go to the path of the folder you want to change permissions. Right-click on it, properties, then go to "Permissions" tab. Then, change the owner of folder from root to your user's name account.

Wish it works to you.

Meow.