Difference between revisions of "Winetricks th"

From WineHQ Wiki
Jump to: navigation, search
(Created page with "'''เเปลภาษาสำหรับเพจนี้:''' {{flag|France}} Français (สำหรับผู้เเปลภาษา, โปร...")
 
(updated but not fully translation (I will update very soon))
Line 1: Line 1:
'''เเปลภาษาสำหรับเพจนี้:''' {{flag|France}} [[Winetricks_fr|Français]] (สำหรับผู้เเปลภาษา, โปรดดูหน้า Discussion)
+
'''เเปลภาษาสำหรับเพจนี้:''' {{flag|France}} [[Winetricks_fr|Français]] {{flag|United Kingdom}} [[Winetricks|English]] (สำหรับผู้เเปลภาษา, โปรดดูหน้า Discussion)
 
----
 
----
 
== อะไรคือ winetricks? ==
 
== อะไรคือ winetricks? ==
Line 8: Line 8:
 
'''โปรดจำไว้:''' Some of the packages listed below may not work well with older versions of Wine.  As always we recommend you use the [https://www.winehq.org/download latest version of Wine].
 
'''โปรดจำไว้:''' Some of the packages listed below may not work well with older versions of Wine.  As always we recommend you use the [https://www.winehq.org/download latest version of Wine].
  
== Getting winetricks ==
+
== รับ winetricks ==
The script is maintained by Austin English at https://github.com/Winetricks/winetricks.  The latest release is available at https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks.  Right-click on that link and use 'Save As' to save a fresh copy.<br />
+
สคริปต์นี้รักษาโดย Austin English ที่ https://github.com/Winetricks/winetricks.  เวอร์ชั่นล่าสุดที่ https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks.  กดคลิปขวาที่ลิ้งเเละเลือก 'Save As' เพื่อทำการบันทึกก็อปปี้.<br />
Alternatively you can get winetricks, using the commandline, with the command:
+
หรือคุณจะรับ winetricks ด้วย commandline โดยใช้คำสั่งนี้ก็ได้:
  
 
  cd "${HOME}/Downloads"
 
  cd "${HOME}/Downloads"
Line 17: Line 17:
  
  
Also, some winetricks "packages" require a few external tools to be installed, namely: '''cabextract''', '''unzip''', '''p7zip''', '''wget''' (or '''curl'''). For GUI support, either '''zenity''' or '''kdialog'''.<br />
+
นอกจากนี้บางเเพ็กเกจของ winetricks จำเป็นต้องมีเครื่องมือภายนอกติดตั้งด้วย เช่น: '''cabextract''', '''unzip''', '''p7zip''', '''wget''' (หรือ '''curl'''). หสับการรองรับ GUI ก็มี '''zenity''' or '''kdialog'''.<br />
Linux users can usually get these via their distribution's package management system.
+
ผู้ใช้งาน Linux สามารถรับเครื่องมือเหล่านี้ได้ผ่านทาง distribution's package management system.
  
== Using winetricks ==
+
== การใช้งาน winetricks ==
 
Once you've obtained winetricks you can run it simply by typing <tt>sh winetricks</tt> at the console. You can also use <tt>./winetricks</tt> if you <tt>chmod +x winetricks</tt> first.  If run without parameters, winetricks displays a GUI with a list of available packages.  If you know the names of the package(s) you wish to install, you can append them to the winetricks command and it will immediately start the installation process.  For example,
 
Once you've obtained winetricks you can run it simply by typing <tt>sh winetricks</tt> at the console. You can also use <tt>./winetricks</tt> if you <tt>chmod +x winetricks</tt> first.  If run without parameters, winetricks displays a GUI with a list of available packages.  If you know the names of the package(s) you wish to install, you can append them to the winetricks command and it will immediately start the installation process.  For example,
  
Line 26: Line 26:
 
will install both the corefonts and vcrun6 packages.
 
will install both the corefonts and vcrun6 packages.
  
== Options ==
+
== การปรับเเต่ง ==
 
Version 20190912 help text:
 
Version 20190912 help text:
  
Line 32: Line 32:
 
  Executes given verbs.  Each verb installs an application or changes a setting.
 
  Executes given verbs.  Each verb installs an application or changes a setting.
 
   
 
   
Options:
+
การปรับเเต่ง:
 
     --country=CC      Set country code to CC and don't detect your IP address
 
     --country=CC      Set country code to CC and don't detect your IP address
 
     --force          Don't check whether packages were already installed
 
     --force          Don't check whether packages were already installed
Line 49: Line 49:
 
  -V, --version        Display version and exit
 
  -V, --version        Display version and exit
 
   
 
   
  Commands:
+
  คำสั่ง:
 
  list                  list categories
 
  list                  list categories
 
  list-all              list all categories and their verbs
 
  list-all              list all categories and their verbs
Line 67: Line 67:
 
  annihilate            Delete ALL DATA AND APPLICATIONS INSIDE THIS WINEPREFIX
 
  annihilate            Delete ALL DATA AND APPLICATIONS INSIDE THIS WINEPREFIX
  
'''Tip:''' As with all Wine commands, winetricks knows about the `WINEPREFIX` environment variable.  This is useful for using winetricks with different Wine prefix locations.  For example,
+
'''คำเเนะนำ:''' As with all Wine commands, winetricks knows about the `WINEPREFIX` environment variable.  This is useful for using winetricks with different Wine prefix locations.  For example,
  
 
  env WINEPREFIX=~/.winetest sh winetricks mfc40  
 
  env WINEPREFIX=~/.winetest sh winetricks mfc40  
 
installs the mfc40 package in the `~/.winetest` prefix.
 
installs the mfc40 package in the `~/.winetest` prefix.
  
'''Tip: '''Users with more than one version of Wine on their system (for example, an installed package and an uninstalled Wine built from git) can specify which version winetricks should use. For example,
+
'''คำเเนะนำ: '''Users with more than one version of Wine on their system (for example, an installed package and an uninstalled Wine built from git) can specify which version winetricks should use. For example,
  
 
  env WINE=~/wine-git/wine sh winetricks mfc40  
 
  env WINE=~/wine-git/wine sh winetricks mfc40  
Line 79: Line 79:
 
<div id=winetricks_and_bugs></div>
 
<div id=winetricks_and_bugs></div>
  
== Reporting bugs after you have used Winetricks ==
+
== รายงานบัคหลังจากใช้งาน  Winetricks ==
 
Please do not report bugs if you have used winetricks to install native (ie non Wine) files, as we cannot support Microsoft dlls.
 
Please do not report bugs if you have used winetricks to install native (ie non Wine) files, as we cannot support Microsoft dlls.
  
Line 86: Line 86:
 
Additionally if you found it necessary to use winetricks for an application please mention it when submitting to the AppDB, mailing lists, and other Wine resources.
 
Additionally if you found it necessary to use winetricks for an application please mention it when submitting to the AppDB, mailing lists, and other Wine resources.
  
== Reporting bugs *in* Winetricks ==
+
== รายงานบัค *ใน* Winetricks ==
 
Winetricks has a bug tracking system at https://github.com/Winetricks/winetricks/issues, please use it.  If you don't want to get an account there to file a bug, posting on the wine user forum may also eventually get noticed.
 
Winetricks has a bug tracking system at https://github.com/Winetricks/winetricks/issues, please use it.  If you don't want to get an account there to file a bug, posting on the wine user forum may also eventually get noticed.
  
== How to remove things installed by Winetricks ==
+
== ลบสิ่งที่ติดตั้งโดย Winetricks ==
 
It's easy to install an entire wineprefix, so by default, winetricks installs each app into its own Wine prefix, and offers an easy way to remove wineprefixes and the menu items they created.
 
It's easy to install an entire wineprefix, so by default, winetricks installs each app into its own Wine prefix, and offers an easy way to remove wineprefixes and the menu items they created.
  
Line 96: Line 96:
 
If for some reason, you still don't want to fiddle at all with your Wine prefixes, Wine does offer a built-in [[Uninstaller]] program. Like the Windows "Add/Remove Programs" applet though, it only recognizes programs installed by well-behaved Windows installers that respect the registry, like InstallShield or WISE. There are no guarantees it will work with a program installed by Winetricks or other installers like ''.msi'' packages.
 
If for some reason, you still don't want to fiddle at all with your Wine prefixes, Wine does offer a built-in [[Uninstaller]] program. Like the Windows "Add/Remove Programs" applet though, it only recognizes programs installed by well-behaved Windows installers that respect the registry, like InstallShield or WISE. There are no guarantees it will work with a program installed by Winetricks or other installers like ''.msi'' packages.
  
== Installing winetricks ==
+
== ติดตั้ง winetricks ==
 
It's not necessary to install winetricks to use it. You may choose to install winetricks in a global location so you can just type <tt>winetricks</tt> on the command line. Some Linux distributions include winetricks in their Wine packages, so you don't have to download it separately. You probably do want to follow these steps, if the distributions packaged winetricks version lags behind the current winetricks release (e.g. Debian/Ubuntu users).
 
It's not necessary to install winetricks to use it. You may choose to install winetricks in a global location so you can just type <tt>winetricks</tt> on the command line. Some Linux distributions include winetricks in their Wine packages, so you don't have to download it separately. You probably do want to follow these steps, if the distributions packaged winetricks version lags behind the current winetricks release (e.g. Debian/Ubuntu users).
  
Line 112: Line 112:
 
  sudo cp winetricks.bash-completion /usr/share/bash-completion/completions/winetricks  # Standard location for BASH completion scripts (Arch, Gentoo, OpenSUSE, Fedora, Debian/Ubuntu, Solus)
 
  sudo cp winetricks.bash-completion /usr/share/bash-completion/completions/winetricks  # Standard location for BASH completion scripts (Arch, Gentoo, OpenSUSE, Fedora, Debian/Ubuntu, Solus)
  
== See Also ==
+
== ดูเพิ่มเติม ==
 
* http://www.cabextract.org.uk/ -- cabextract is a tool for extracting MS cabinet files under Unix environments.
 
* http://www.cabextract.org.uk/ -- cabextract is a tool for extracting MS cabinet files under Unix environments.
 
* http://mike.kronenberg.org/index.php?s=trix (Darwine now comes bundled with trix, a gui that invokes winetricks)
 
* http://mike.kronenberg.org/index.php?s=trix (Darwine now comes bundled with trix, a gui that invokes winetricks)
  
 
[[Category:Third Party]]
 
[[Category:Third Party]]

Revision as of 09:52, 9 October 2019

เเปลภาษาสำหรับเพจนี้: Flag of France.svg Français Flag of the United Kingdom.svg English (สำหรับผู้เเปลภาษา, โปรดดูหน้า Discussion)


อะไรคือ winetricks?

Winetricks คือสคริปต์ช่วยสำหรับดาวน์โหลดเเละติดตั้งรันไทม์ไลบารี่ที่จำเป็นสำหรับการรันโปรเเกรมใน Wine. นี่อาจรวมถึงการเปลี่ยนเเปลงองค์ประกอบของ Wine ที่ใช้ไลบารี่เเบบ closed source

โปรดจำไว้: การใช้งาน winetricks จะเป็นประโยชน์อย่างมากสำหรับการทำให้บางโปรเเกรมของ wine ใช้งานได้ เเต่การกระทำนั้นเป็นการจำกัดการสนับสนุนผ่าน WineHQ โดยทั่วไปการรายงานบัคอาจเป็นไปไม่ได้ถ้าคุณเปลี่ยนเเปลงบางส่วนขอว Wine. โปรดดู รายงานบัคหลังจากใช้งาน Winetricks ข้างล่าง

โปรดจำไว้: Some of the packages listed below may not work well with older versions of Wine. As always we recommend you use the latest version of Wine.

รับ winetricks

สคริปต์นี้รักษาโดย Austin English ที่ https://github.com/Winetricks/winetricks. เวอร์ชั่นล่าสุดที่ https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks. กดคลิปขวาที่ลิ้งเเละเลือก 'Save As' เพื่อทำการบันทึกก็อปปี้.
หรือคุณจะรับ winetricks ด้วย commandline โดยใช้คำสั่งนี้ก็ได้:

cd "${HOME}/Downloads"
wget  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks


นอกจากนี้บางเเพ็กเกจของ winetricks จำเป็นต้องมีเครื่องมือภายนอกติดตั้งด้วย เช่น: cabextract, unzip, p7zip, wget (หรือ curl). หสับการรองรับ GUI ก็มี zenity or kdialog.
ผู้ใช้งาน Linux สามารถรับเครื่องมือเหล่านี้ได้ผ่านทาง distribution's package management system.

การใช้งาน winetricks

Once you've obtained winetricks you can run it simply by typing sh winetricks at the console. You can also use ./winetricks if you chmod +x winetricks first. If run without parameters, winetricks displays a GUI with a list of available packages. If you know the names of the package(s) you wish to install, you can append them to the winetricks command and it will immediately start the installation process. For example,

sh winetricks corefonts vcrun6 

will install both the corefonts and vcrun6 packages.

การปรับเเต่ง

Version 20190912 help text:

Usage: /usr/bin/winetricks [options] [command|verb|path-to-verb] ...
Executes given verbs.  Each verb installs an application or changes a setting.

การปรับเเต่ง:

    --country=CC      Set country code to CC and don't detect your IP address
    --force           Don't check whether packages were already installed
    --gui             Show gui diagnostics even when driven by commandline
    --isolate         Install each app or game in its own bottle (WINEPREFIX)
    --self-update     Update this application to the last version
    --update-rollback Rollback the last self update
-k, --keep_isos       Cache isos (allows later installation without disc)
    --no-clean        Don't delete temp directories (useful during debugging)
-q, --unattended      Don't ask any questions, just install automatically
-r, --ddrescue        Retry hard when caching scratched discs
-t  --torify          Run downloads under torify, if available
    --verify          Run (automated) GUI tests for verbs, if available
-v, --verbose         Echo all commands as they are executed
-h, --help            Display this message and exit
-V, --version         Display version and exit

คำสั่ง:
list                  list categories
list-all              list all categories and their verbs
apps list             list verbs in category 'applications'
benchmarks list       list verbs in category 'benchmarks'
dlls list             list verbs in category 'dlls'
games list            list verbs in category 'games'
settings list         list verbs in category 'settings'
list-cached           list cached-and-ready-to-install verbs
list-download         list verbs which download automatically
list-manual-download  list verbs which download with some help from the user
list-installed        list already-installed verbs
arch=32|64            create wineprefix with 32 or 64 bit, this option must be
                      given before prefix=foobar and will not work in case of
                      the default wineprefix.
prefix=foobar         select WINEPREFIX=/home/$USER/.local/share/wineprefixes/foobar
annihilate            Delete ALL DATA AND APPLICATIONS INSIDE THIS WINEPREFIX

คำเเนะนำ: As with all Wine commands, winetricks knows about the `WINEPREFIX` environment variable. This is useful for using winetricks with different Wine prefix locations. For example,

env WINEPREFIX=~/.winetest sh winetricks mfc40 

installs the mfc40 package in the `~/.winetest` prefix.

คำเเนะนำ: Users with more than one version of Wine on their system (for example, an installed package and an uninstalled Wine built from git) can specify which version winetricks should use. For example,

env WINE=~/wine-git/wine sh winetricks mfc40 

installs the mfc40 package using the Wine in the ~/wine-git directory.

รายงานบัคหลังจากใช้งาน Winetricks

Please do not report bugs if you have used winetricks to install native (ie non Wine) files, as we cannot support Microsoft dlls.

Using winetricks to install gecko, mono, and fakeie6 options is acceptable for bug reports - just be sure to mention that's what you've done.

Additionally if you found it necessary to use winetricks for an application please mention it when submitting to the AppDB, mailing lists, and other Wine resources.

รายงานบัค *ใน* Winetricks

Winetricks has a bug tracking system at https://github.com/Winetricks/winetricks/issues, please use it. If you don't want to get an account there to file a bug, posting on the wine user forum may also eventually get noticed.

ลบสิ่งที่ติดตั้งโดย Winetricks

It's easy to install an entire wineprefix, so by default, winetricks installs each app into its own Wine prefix, and offers an easy way to remove wineprefixes and the menu items they created.

Winetricks does not provide a way to uninstall individual apps or DLLs inside a Wine prefix. This is for several reasons, but mainly because the preferred way to uninstall anything in Wine is to simply install into a fresh Wine prefix. (Yes, it would be nice to have uninstallers for everything, but I don't need it myself. Patches welcome.)

If for some reason, you still don't want to fiddle at all with your Wine prefixes, Wine does offer a built-in Uninstaller program. Like the Windows "Add/Remove Programs" applet though, it only recognizes programs installed by well-behaved Windows installers that respect the registry, like InstallShield or WISE. There are no guarantees it will work with a program installed by Winetricks or other installers like .msi packages.

ติดตั้ง winetricks

It's not necessary to install winetricks to use it. You may choose to install winetricks in a global location so you can just type winetricks on the command line. Some Linux distributions include winetricks in their Wine packages, so you don't have to download it separately. You probably do want to follow these steps, if the distributions packaged winetricks version lags behind the current winetricks release (e.g. Debian/Ubuntu users).

To download and install your own copy of winetricks, you can install it manually like this:

cd "${HOME}/Downloads"
wget  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks
sudo cp winetricks /usr/local/bin

To download and install the (separate) BASH completion script for winetricks:

cd "${HOME}/Downloads"
wget  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks.bash-completion
sudo cp winetricks.bash-completion /usr/share/bash-completion/completions/winetricks   # Standard location for BASH completion scripts (Arch, Gentoo, OpenSUSE, Fedora, Debian/Ubuntu, Solus)

ดูเพิ่มเติม