TinyLinux‎ > ‎

Wine で Root権限でシステムを作る。

posted Jun 28, 2016, 9:16 PM by Masaru Hirano
あまり、オススメできませんが、
WineでAdobeCSを動かそうとすると、システム周りを設定するのに、
Root権限が必要になることが多い。
今回、つぎのような設定をしました。
セキュリティ上、オススメできませんが、
創作環境の整備ぐらいに考えていください。
メモリ効率は、Windowsで動作させるよりも遥かに低メモリでレスポンスも早いです。

To be able to run wine with sudo you got to have a wineprefix owned by the root user.

Running:

sudo chown root /home/yourusername/.wine

where yourusername is your user name, would solve this particular problem but i'd recommend against doing that, since then you won't be able to use wine as a normal user.

A better alternative could be to make a second wineprefix owned by the root user with:

sudo WINEPREFIX=/home/yourusername/.wine_root winecfg

(just replace yourusername with an active user name, or provide an alternative location)

Then you can just run the program with

sudo WINEPREFIX=/home/yourusername/.wine_root wine /path/to/your/program.exe

Although this can be done, running wine with sudo is pretty dangerous so you may want to avoid it at all if possible.



Comments