{"id":37124,"date":"2019-10-31T22:15:53","date_gmt":"2019-10-31T19:15:53","guid":{"rendered":"https:\/\/prohoster.info\/blog\/wine-na-windows-10-on-rabotaet\/"},"modified":"2019-10-31T22:15:53","modified_gmt":"2019-10-31T19:15:53","slug":"wine-na-windows-10-on-rabotaet","status":"publish","type":"post","link":"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/wine-na-windows-10-on-rabotaet","title":{"rendered":"Wine on Windows 10. It works","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><noindex><a rel=\"nofollow\" href=\"https:\/\/www.winehq.org\/\">Wine<\/a><\/noindex>\u00a0\u2014 a program for running Windows applications on Unix-based computers.<\/p>\n<p>Running Wine on Windows has been a dream for fans who heed the call of \"We do what we must because we can,\" at least since 2004, when someone attempted to compile Wine in Cygwin and <noindex><a rel=\"nofollow\" href=\"https:\/\/www.mail-archive.com\/wine-devel@winehq.org\/msg04380.html\">broke the host system's registry<\/a><\/noindex>.<\/p>\n<p>The justification: \"But what about old applications that don't work properly on the latest Windows versions?\" But we understand that <i>the real<\/i> reason is \"I have suffered for my art, now it's your turn.\"<br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\nAt the end of 2008, I was overwhelmed by an obsessive thought \u2014 and I (seemingly, it was me) created a page <noindex><a rel=\"nofollow\" href=\"https:\/\/web.archive.org\/web\/20090110105132\/http:\/\/wiki.winehq.org\/WineOnWindows\">WineOnWindows<\/a><\/noindex> on the Wine wiki. <b>In brief:<\/b> it was completely impossible since everything worked through Cygwin, MinGW, or Windows Services for Unix. <noindex><a rel=\"nofollow\" href=\"https:\/\/wiki.winehq.org\/Cygwin_and_More\">The current page<\/a><\/noindex> is not much more successful.<\/p>\n<p>Windows 10 introduced the Windows Subsystem for Linux, and Ubuntu conveniently downloads from the Microsoft Store. As a result, our silly idea practically implements itself, except that you need to manually set the DISPLAY environment variable.<\/p>\n<p>So far, it's mind-bogglingly useless. Wine only works with 64-bit Windows applications, which means not even all applications that come with Windows 10 itself.<\/p>\n<p>(The original project started after someone couldn't run Encarta 97 on Windows 10. So, like any true geek solution, it really doesn't solve the original user's problem.)<\/p>\n<p>But I want to emphasize again: <b>now it works trivially<\/b>. I am not some crazy genius who implemented a fantastic project \u2014 it just seems I was the first to publicly announce this fact.<\/p>\n<h1>How to do this silly thing<\/h1>\n<p>\n<b>1.<\/b> You have 64-bit Windows 10, right? That's the only version with WSL.<\/p>\n<p><b>2.<\/b> Install WSL. Control Panel -&gt; Programs -&gt; Programs and Features -&gt; Turn Windows features on or off. Check the box for \"Windows Subsystem for Linux.\" Restart Windows.<\/p>\n<p><b>3.<\/b> Go to the Microsoft Store, install Ubuntu (mainly to run it and create WSL). I installed Ubuntu 18.04 LTS. Open Ubuntu, and you will see the bash terminal.<\/p>\n<p><b>4.<\/b> Install the following from the bash command line:<\/p>\n<pre><code class=\"bash\">sudo dpkg --add-architecture i386\nsudo apt update; sudo apt upgrade\nsudo apt install wine-stable<\/code><\/pre>\n<p>\nYou can install a more recent version of Wine if you want to <noindex><a rel=\"nofollow\" href=\"https:\/\/wiki.winehq.org\/Ubuntu\">waste time<\/a><\/noindex> (don't forget about the two new libraries needed for wine-devel &gt;=4.5 that haven't yet made it into Ubuntu!). Let me know if this works.<\/p>\n<p><b>5.<\/b> Add to your <code>.bashrc<\/code> such a line:<\/p>\n<pre><code class=\"bash\">export DISPLAY=:0.0<\/code><\/pre>\n<p>\nYou probably want to run this in the current bash window as well.<\/p>\n<p><b>6.<\/b> <noindex><a rel=\"nofollow\" href=\"https:\/\/sourceforge.net\/projects\/vcxsrv\/\">Install VcXsrv<\/a><\/noindex>, a nicely packaged version of xorg compiled for Windows \u2014 just grab the latest executable and run it. Launch the X Server through the Start button and XLaunch. It will guide you through the defaults \u2014 leave most of them as is. I checked the box \u2018Disable Access Control\u2019 just in case. Save the configuration.<\/p>\n<p><b>6a.<\/b> If you want to check that the X server is configured correctly, install <code>sudo apt install x11-apps<\/code> and run <code>xeyes<\/code> for a brief trip back to the 80s and 90s.<\/p>\n<p><b>7.<\/b> Self <code>wine<\/code> is not working because <noindex><a rel=\"nofollow\" href=\"https:\/\/superuser.com\/questions\/1407730\/run-32-bit-application-on-ubuntu-on-windows-subsystem-for-linux\">32-bit binaries do not run in WSL<\/a><\/noindex>. On our 64-bit Windows 10, it throws an error <code>\/usr\/bin\/wine: 40: exec: \/usr\/lib\/wine\/wine: Exec format error<\/code>. Apparently, this was <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/microsoft\/wsl\/issues\/2468#issuecomment-502402213\">fixed in WSL 2<\/a><\/noindex>.<\/p>\n<p>But for now, let's run Notepad in Wine!<\/p>\n<pre>wine64 \/usr\/lib\/x86_64-linux-gnu\/wine\/fakedlls\/notepad.exe<\/pre>\n<p>\n<img decoding=\"async\" alt=\"Wine on Windows 10. It works\" src=\"\/wp-content\/uploads\/2019\/08\/5f40ee2886fb6fd17ed779f893bdb1e4.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n <br \/>\n<b>TO DO:<\/b> 32-bit support. We\u2019ll have to wait for the <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/microsoft\/wsl\/issues\/2468#issuecomment-502402213\">release of WSL 2<\/a><\/noindex>. It will be interesting to see if ancient Win16 programs will work \u2014 theoretically, they should run in Wine, even if they no longer work on Windows itself.<\/p>\n<h1>32-bit applications via qemu<\/h1>\n<p>\nThank you <noindex><a rel=\"nofollow\" href=\"https:\/\/reddragdiva.dreamwidth.org\/607714.html?thread=8317666#cmt8317666\">to the anonymous commenter<\/a><\/noindex>, who suggested how to approach running 32-bit applications.<\/p>\n<pre>sudo apt install qemu-user-static\nsudo update-binfmts --install i386 \/usr\/bin\/qemu-i386-static --magic 'x7fELFx01x01x01x03x00x00x00x00x00x00x00x00x03x00x03x00x01x00x00x00' --mask 'xffxffxffxffxffxffxffxfcxffxffxffxffxffxffxffxffxf8xffxffxffxffxffxffxff'\nsudo service binfmt-support start<\/pre>\n<p>And now we can do:<\/p>\n<pre>fun@DESKTOP-7F6DU8P:~$ wine --version\nwine-3.0 (Ubuntu 3.0-1ubuntu1)<\/pre>\n<p>\nHowever, Encarta 97 still doesn't work:<\/p>\n<pre>fun@DESKTOP-7F6DU8P:\/mnt\/e$ wine SETUP.EXE\nwine: Unhandled page fault on read access to 0xffffffff at address 0x11df:0x00002c11 (thread 0011), starting debugger...\n0011:err:seh:start_debugger Couldn't start debugger (\"winedbg --auto 15 108\") (2)\nRead the Wine Developers Guide on how to set up winedbg or another debugger<\/pre>\n<p>\nFor those in the know: <code>file<\/code> says <code>SETUP.EXE: MS-DOS executable, NE for MS Windows 3.x<\/code>, so we need to go down to rare 16-bit programs.<\/p>\n<p>Encarta 97 installs and runs flawlessly in Wine 4.13 on Linux\u2026 but in 4.13 on Windows 10, it still doesn\u2019t work:<\/p>\n<pre>fun@DESKTOP-7F6DU8P:~$ wine \/mnt\/e\/SETUP.EXE\nXlib: extension \"MIT-SHM\" missing on display \":0.0\".\nXlib: extension \"MIT-SHM\" missing on display \":0.0\".\n0009:err:process:__wine_kernel_init boot event wait timed out\n001d:err:process:__wine_kernel_init boot event wait timed out\nwine: Unhandled page fault on read access to 0xffffffff at address 0x11cf:0x00002c11 (thread 001e), starting debugger...001e:err:seh:start_debugger Couldn't start debugger (\"winedbg --auto 28 152\") (2)\nRead the Wine Developers Guide on how to set up winedbg or another debugger\n001d:err:ntdll:RtlpWaitForCriticalSection section 0x7e6273e0 \"syslevel.c: Win16Mutex\" wait timed out in thread 001d, blocked by 001e, retrying (60 sec)\nXlib: extension \"MIT-SHM\" missing on display \":0.0\".\nCould not load wine-gecko. HTML rendering will be disabled.\n001e:err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7b4a6abc\nwine client error:1e: write: Bad file descriptor<\/pre>\n<p>\nOf course, it outputs <i>various<\/i> error messages in several runs\u2026<br \/>\n<br \/>Source: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/463375\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>Wine\u00a0\u2014 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 Windows \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445 \u043f\u043e\u0434 Unix. \u0417\u0430\u043f\u0443\u0441\u043a Wine \u043d\u0430 Windows \u0431\u044b\u043b \u043c\u0435\u0447\u0442\u043e\u0439 \u0444\u0430\u043d\u0430\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u0437\u043e\u0432\u0443 \u0441\u0435\u0440\u0434\u0446\u0430 \u00ab\u041c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0442\u043e, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u044b, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d\u044b \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c\u00bb, \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435, \u0441 2004 \u0433\u043e\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u043a\u0442\u043e-\u0442\u043e \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c Wine \u0432 Cygwin \u0438 \u0441\u043b\u043e\u043c\u0430\u043b \u0440\u0435\u0435\u0441\u0442\u0440 \u0445\u043e\u0441\u0442-\u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041e\u043f\u0440\u0430\u0432\u0434\u0430\u043d\u0438\u0435: \u00ab\u0410 \u043a\u0430\u043a \u0436\u0435 \u0441\u0442\u0430\u0440\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":27834,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-37124","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Wine \u2014 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 Windows \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445 \u043f\u043e\u0434 Unix. \u0417\u0430\u043f\u0443\u0441\u043a Wine \u043d\u0430 Windows \u0431\u044b\u043b \u043c\u0435\u0447\u0442\u043e\u0439 \u0444\u0430\u043d\u0430\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u0437\u043e\u0432\u0443.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/wine-na-windows-10-on-rabotaet\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47Wine \u043d\u0430 Windows 10. \u041e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"Wine \u2014 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 Windows \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445 \u043f\u043e\u0434 Unix. \u0417\u0430\u043f\u0443\u0441\u043a Wine \u043d\u0430 Windows \u0431\u044b\u043b \u043c\u0435\u0447\u0442\u043e\u0439 \u0444\u0430\u043d\u0430\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u0437\u043e\u0432\u0443.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/wine-na-windows-10-on-rabotaet\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T19:15:53+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T19:15:53+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Wine on Windows 10. It works | ProHoster","description":"Wine is a program to run Windows applications on Unix-based computers. Running Wine on Windows has been a dream for enthusiasts who follow the call.","canonical_url":"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/wine-na-windows-10-on-rabotaet","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"en_US","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47Wine \u043d\u0430 Windows 10. \u041e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 | ProHoster","og:description":"Wine \u2014 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 Windows \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445 \u043f\u043e\u0434 Unix. \u0417\u0430\u043f\u0443\u0441\u043a Wine \u043d\u0430 Windows \u0431\u044b\u043b \u043c\u0435\u0447\u0442\u043e\u0439 \u0444\u0430\u043d\u0430\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u0437\u043e\u0432\u0443.","og:url":"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/wine-na-windows-10-on-rabotaet","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T19:15:53+00:00","article:modified_time":"2019-10-31T19:15:53+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"37124","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-22 06:12:19","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 01:33:24","updated":"2026-01-22 06:12:19","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/37124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/comments?post=37124"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/37124\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/media\/27834"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/media?parent=37124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/categories?post=37124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/tags?post=37124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}