ubuntuでwineをインストールする

11674 ワード

         “sudo apt-get install wine”    ,    wine。
, “wine ....”
, , /home/yourname/game/warcraft
“cd /home/yourname/game/warcraft” “ls” frozen throne.exe “wine frozen throne.exe” 。
frozen throne.exe wine

Ubuntu, ! windows , , : Ubuntu WINE。
   , , , 。 , , Wine , , 。
   Wine
    , Wine , Wine 。 HOWTO , “Wine ” Wine 。 2 , Wine 。 , Wiki、 、 HOWTO , 。 Wine , Wine 。
  1.
  1.1Wine is not an emulator
   , 。
  1.2 Wine
    Wine bug。 feisty 0.9.33, Wine 0.9.44( )。0.9.33 , DirectX 。 0.9.33 0.9.44 。 0.9.37 0.9.40 KotOR2 , 。 。
  ( : , , bug 2~3 )
  1.3 Wine
  ( : , 。
   , , 。)
  1.4
    ,wine exe , exe 。 , wine ( : )。 , , 。 , , 。
  1.5
  Wine 。 , 。 linux , 。
  2.“winecfg”
  2.1 “winecfg”
   winecfg wine 。
  2.2
    。 , 、CDKEY 。 , kill 。 。
  2.3 Application Settings
    winecfg Application Application Settings 。 windows ( : windows exe )、 DLL 。
   windows DLL, ( wine) native DLL ( DLL ),( :wine DLL builtin,windows DLL native) 。 DLL , wine nativeDLL wine ( : , wine builtinDLL, native DLL, , , )。 , , Wine。( : , exe Application , 。 default , exe 。)
  2.4Windows
   Windows 。 XP wine 98 。 Application , , 。
  2.5 ALSA
   OSS , OSS 。
  ( : ALSA, OSS )
  2.6 allow the window manager to control the windows(winecfg )
    。 wine 0.9.39+ , : , 。 X server , 。( “ ”)
  2.7 DLL
   winecfg native DLL builtin DLL。 DLL 。kernel32.dll, gdi32.dll,user32.dll, ntdll.dll。 nativeDLL 。 wine dll, native builtin 。 MS DLL , , 。
  3.
  3.1 CD
   Wine CD , /dev 。 ,Wine /dev , CD E: , D: 。 CD 。 /dev/hdc ( :7.04 /dev/scd0)。
  ln -s /dev/hdc ~/.wine/dosdevices/d\:\:
  3.2
   winecfg , 。 wine wiki
  http://wiki.winehq.org/UsefulRegistryKeys
   , Alsa Driver UseDirectHW, ; Direct3D VideoMemorySize, , wine 64MB。
  3.3 WINEPREFIXCREATE
  
  3.4 Wine Gecko IE engine
   IE, , IE Wine。 Wine Gecko IE engine 。
  a、 :
  wine iexplore http://www.winehq.org
  b、 yes
  c、 http://wiki.winehq.org/UsefulRegistryKeys, HKEY_LOCAL_MACHINE
  d、 Internet Explorer
   ,
  wine iexplore http://www.winehq.org
   winehq 。
  3.5
   zh.reg, regedit zh.reg。 Windows Fonts simsun.ttc /home/user/.wine/drive_c/windows/fonts 。
  REGEDIT4
  [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
  "Arial"="simsun"
  "Arial CE,238"="simsun"
  "Arial CYR,204"="simsun"
  "Arial Greek,161"="simsun"
  "Arial TUR,162"="simsun"
  "Courier New"="simsun"
  "Courier New CE,238"="simsun"
  "Courier New CYR,204"="simsun"
  "Courier New Greek,161"="simsun"
  "Courier New TUR,162"="simsun"
  "FixedSys"="simsun"
  "Helv"="simsun"
  "Helvetica"="simsun"
  "MS Sans Serif"="simsun"
  "MS Shell Dlg"="simsun"
  "MS Shell Dlg 2"="simsun"
  "System"="simsun"
  "Tahoma"="simsun"
  "Times"="simsun"
  "Times New Roman CE,238"="simsun"
  "Times New Roman CYR,204"="simsun"
  "Times New Roman Greek,161"="simsun"
  "Times New Roman TUR,162"="simsun"
  "Tms Rmn"="simsun"
  4.
  4.1 CD
  ( : cd CD )
   , CD CD , CD:
  wine /media/cdrom0/setup.exe
  4.2 “wine eject”
   CD, CD, , :
  wine eject d:
  4.3 InstallShield bug
   CD 。
  4.4 uninstaller
   “uninstaller” , , , uninstaller 。
  4.5 .msi
   windows msi , :
  wine msiexec /i install.msi
  
  wine start install.msi
  4.6 DirectX
  Wine DirectX , DirectX wine DirectX Wine。
   ,d3dx9_##.dll d3dx10_33.dll Windows , 。 dll 。
  5.
  5.1 wine
  wine application.exe
  5.2 cd
  cd 。
  5.3 WINEDEBUG
   ,wine debug ( “fixme” )。 , 。 debug , :
  WINEDEBUG=-all game.exe
  5.4 root sudo wine
   。
  5.5 wine
  wineboot windows
  wine control
  wineserver wineserver wine , 。
  wineserver
  a、-d# debug 。
  b、-h wineserver
  c、-k kill wineserver, 。
  d、-p wineserver , ,wineserver 。 , 。
  e、-w wineserver wineserver 。
  5.6 Wine
    , 。 , “renice” 。 “renice” ,“nice” ,( = nice , = nice )。 -20( ) 19( ) , 0。 , :
  sudo renice -10 -n game.exe
   Wine , -20, -10 , , (- 11,-12,……)。 -10 。 ( ), ALT- TAB “renice” 。
  
   。
  1、 , ALT-TAB
  2、 ——> ——> ,
  3、 ——
  4、
  5、 , ALT-TAB
  6.
  6.1 WineTools
   WineTools 90 Windows 。 Wine 。 WineTools, , 。 WineTools winecfg 。
  6.2Wine-Doors
  Wine-Doors Windows , 。 , 。 , 。
  6.3Cedega
   Cedega Wine , 。cedega , ( CD)( :wine )。cedega , 3 , 3 , , 。cedega WineX, Wine MIT , GPL ,WineX wine , cedega GPL,cedega wine 。 cedega , cedega linux 。
  6.4CrossOver
  CrossOver ,CrossOver wine , wine 。CrossOver linux Microsoft Office , 。CrossOver , Wine ( : 0.9.17), CrossOver Wine 。CrossOver 39.95 。
  6.5ReactOS
   CrossOver ,ReactOS Wine , Wine , Windows 。 ,ReactOS Windows , 。 , CD、 LiveCD、QEMU VMware 。
  7.
  7.1 ( )
    X server , 。wine (GNOME KDE) , X server , 。 , GDM KDM, ( (console) )。
  a、 ,
  nano launcher.sh( vim nano)
  b、 。 nVidia , nvidia settings ,
  #!/bin/sh
  #uncomment if launching from console session
  #sudo /etc/init.d/gdm stop
  #KDE use this instead
  #sudo /etc/init.d/kdm stop
  # Launches a new X session on display 3. If you don't have an Nvidia card
  # take out the "& nvidia-settings --load-config-only" part
  X :3 -ac & nvidia-settings --load-config-only
  # Goto game dir (modify as needed)
  cd "$HOME/.wine/drive_c/Program Files/Game/Directory/"
  # Forces the system to have a break for 2 seconds, X doesn't launch instantly
  sleep 2
  # Launches game (modify as needed)
  DISPLAY=:3 WINEDEBUG=-all wine "C:/Program Files/Game/Directory/game.exe"
  c、 ( Ctrl+O, Ctrl+X。Vim Esc, Shift+:, w, q)
  d、 ,
  chmod +x ~/launcher.sh
  e、
  sh launcher.sh
  
  ./launcher.sh
  f. , CTRL-ALT-BACKSPACE
  
   , X session 。
  a、 “sudo /etc/init.d/gdm stop” ( #) , KDE, “sudo /etc/init.d/kdm stop”。
  b、 , CTRL-ALT-F1
  c、 。 , X session , GDM KDM 。
  d、 X session ,
   X server
  sudo X :3 -ac & nvidia-settings --load-config-only
    : , Xwrapper.config X 。 sudo vim /etc/X11/Xwrapper.config, allowed_users=console allowed_users=anybody。
  e、 , CTRL-ALT-BACKSPACE , X :
  sudo /etc/init.d/gdm start
   KDE
  sudo /etc/init.d/kdm start
   ,
  startx
   :
  a、 X session, winecfg virtual desktop。
  b、 X session 。