Skip to content
Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software

Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software

Download Free Animation Software – Let's Learn How to Do Everything!

  • Step-by-Step MMD instructions
  • DOWNLOADS
  • Troubleshoot, Fix MMD
  • Site Contents
  • Reggie Replies Q&A
  • Homework!
  • What IS MMD?
    • Download MikuMikuDance Newest Latest Version of MMD
  • “HOW TO”
    • Raycast RAY-MMD Effect Tutorials
  • BONUS PAGES
    • Why convert PMD models to PMX?
  • HALL of CHAMPIONS
  • Tutorial Categories
  • About
    • Privacy Policy
  • Toggle search form
  • New Getting Started with MMD Video on YouTube! Intro to MikuMikuDance
  • Create models from OBJ files using Blender and PMDE .OBJ Object Files
  • Once there was a war… the making of my “Paint it black” MMD video "the making of" my video
  • dull-VS-alive-animation-environment
    MMD animation environment… MORE than just a model on a stage! "the making of" my video
  • MikuMikuDance FREE Animation Software & Instructions MMD Tutorials
  • Beginner’s Guide: Using Ray-MMD ver 1.5.0 – Latest version of Raycast MMD Tutorials
  • MikuMikuDance Keyboard Shortcuts MMD Beginners Guide Intro to MikuMikuDance
  • Click to see Reggise Dentmore's MMD Folk Guitar images Full Size!
    Download Reggie Dentmore’s MMD Folk Guitar Accessory!! Google SketchUp and MMD

Running MikuMikuDance in Linux using Wine and DXVK

Posted on December 28, 2020January 9, 2025 By parkeerwacht 50 Comments on Running MikuMikuDance in Linux using Wine and DXVK

How do I run MMD on Linux? Does MikuMikuDance run on Linux? How do I run MMD using Wine on Linux? Can I use MME on Linux? How do I use DXVK with MMD? How do I run MMD on Ubuntu?



EDITOR’S NOTE 7/17/2024:

A reader left a comment:

Hello!

I was able to run it using Bottles. I simply created a new “gaming” profile bottle and the default settings. I did however copy the MMD program folder into the “c:” drive of the bottle just in case. I was able to run MMD as if it was nothing.

The only caveat is that the fonts look terrible.



How to run MikuMikuDance in Linux using Wine and DXVK

Hey everyone, it is parkeerwacht here! It has been a while since I have written for the pages here at LearnMMD! But I am back with a special tutorial. How to run MMD in Linux! And “no”, not some alternate version of MMD: run the full 64-bit Windows version (9.32 as of this writing) including MME!

Ok, so a little story before we begin: Since I have always been interested in the technical aspect of MMD, and also computers in general, I like challenges! So I switched to Linux as my main operating system about a year ago, as of writing this. I have a problem however: I can no longer use MMD! MikuMikuDance only runs on Windows. Because I can play my Windows games using DirectX just fine, using Wine and DXVK, I thought could I do the same for MMD? And the answer is YES!

For this tutorial, I searched the internet and found multiple sources (I will cite these)… I combined them into this one guide for MMD specifically. Also I found a script on a Japanese website. I looked into its code and I did some testing. I wrote my own script based of that one. I also found a resource to do it manually. The script only automates things. ANYWAY enough rambling about… LET’S GET STARTED!!!

Also lets put some credit to the people who helped me with the information:

  • Midnight Express Ginga81(ginga81)
  • petite philosophie (YouTube, Twitter, Nicovideo (www.nicovideo.jp/user/52346055)

Without them I would not have been able to write this.

Now a little thing before we begin, I need to start with a disclaimer:

We are going to mess around with the Linux terminal. Make sure you know what you are doing! All the scripts I listed are provided “as is”. If for some reason they do not work, try to troubleshoot them yourself. This is due to the constant updates to wine, winetricks and DXVK. If it is completely broken let me know and I will update them. Use this tutorial and the scripts at your own risk. This guide only works for MMD+MME. It is not compatible with PMXe!
ALSO NOTE: IF YOU ARE SENSITIVE TO FLASHING IMAGES DO NOT USE MMD IN LINUX. FLASHING ARTIFACTS MAY OCCUR!!!

The following instructions are written for Ubuntu (and derived distro’s) IF you run something else follow the instructions for your distro instead. Update 09-01-2025, I have tested this on Arch Linux and it seems to work fine. Just need to manually add JP locales and fonts.

First of all check if your system is compatible with the requirements for MMD, Vulkan and DXVK

Requirements:

  • 64-bit System.
  • Operating system: Ubuntu 18.04 or newer, any other recent Distro of Linux should work fine (Tested on both Ubuntu and Arch Linux)
    (Note: Other Linux distro’s will probably work fine if they are debian based. However I have done my testing on Ubuntu 20.04)
  • an AMD or Nvidia Graphics card that supports Vulkan. (here is a list of supported cards: https://en.wikipedia.org/wiki/Vulkan_(API)#Compatibility )
  • Recommended: at least 2 monitors (I will explain why later)
  • Knowledge of the Linux terminal

Here is a screenshot of my install:

Step 1 Setting up Vulkan.

Note: If you already got all the drivers and software installed to run Vulkan applications on your system you can skip this step.

What is Vulkan?

Vulkan is a graphical computing API much like DirectX and OpenGL etc. (very simplified) Now since Linux does not support DirectX, we need to find another way. Vulkan has less latency than OpenGL, and is generally more efficient. It is also compatible across multiple platforms.

1. Installing Drivers

Before we can use Vulkan we need to install some drivers first. PLEASE FOLLOW INSTRUCTIONS CAREFULLY!!!!!!!

DO NOT FORGET THE FOLLOWING COMMAND:

We need to set up the system so it accepts x86 packages. Do this via:

sudo dpkg --add-architecture i386

For AMD cards

Make sure you are running either AMDVLK or AMDGPU-pro (DO NOT INSTALL BOTH)

I recommend using AMDVLK. I had the best experiences with this driver. The AMDGPU-pro package from AMD tends to break some games/applications using Vulkan. I have not tested AMDGPU-pro drivers , only AMDVLK.

Follow the instructions on this page under install with pre-build driver:

https://github.com/GPUOpen-Drivers/AMDVLK#install-with-pre-built-driver

For Nvidia cards

see instructions below for installing Vulkan dependencies

2. Installing Vulkan dependencies

To install Vulkan on your system I highly suggest following the steps on this page for your version of Ubuntu (or other distro) and GPU.

here is the link: https://github.com/lutris/docs/blob/master/InstallingDrivers.md

Installing vulkan

Step 2 Installing Wine

NOTE: If you already have the latest wine-staging version on your system you can skip this step.

What is Wine?

Wine stands for Wine Is Not an Emulator. It is a compatibility layer that is able to run Windows programs on other operating systems, like Linux and macOS. This has a huge performance boost compared to running a virtual machine. It translates all the Windows API calls on the fly so Linux can understand these. This saves a lot of memory usage and performance hits. Plus you can integrate Windows applications in your desktop environment [source]

We need this program so we can run Windows programs on Linux. MMD is a Windows only program.

Installing Wine

We need to install Wine-staging (latest version) to be able to run MMD with DXVK.

Note: If you already got the latest version of wine-staging installed, you can skip this step. If you have a different variant of Wine installed, uninstall it and reinstall with wine-staging

MAKE SURE TO INSTALL THE STAGING BRANCH!!

Before you setup anything, run this command if you haven’t done so already:

sudo dpg --add-architecture i386

ONLY FOR UBUNTU 18.04 USERS!!! IF YOU HAVE 19.10 OR NEWER SKIP TOWARDS SETTING UP WINE.

You need to set up FAudio first. This package is not in Ubuntu’s package manager but it is a dependency for Wine. To install follow these commands:

wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/i386/libfaudio0_19.07-0~bionic_i386.deb

wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/amd64/libfaudio0_19.07-0~bionic_amd64.deb

sudo dpkg -i libfaudio0_19.07-0~bionic_*.deb

If you get an error saying missing dependencies, enter the following command:

sudo apt -f install

Now go to the next part

Setting up wine

Follow the instructions on this page:

https://wiki.winehq.org/Ubuntu

MAKE SURE TO INSTALL WINE-STAGING!!!!

installing wine-staging

Now you have Wine installed

You can test it by typing the following command

wine --version

Step 3 Setting up Japanese locale.

We need to set up Japanese locale on the system to make sure MMD runs properly. This also allows you to unzip your models and such (due to them being zipped in the Japanese language format). We need to install the Japanese language pack for this

To install this you enter the following command.

sudo apt install language-pack-ja

installing language packs

Unzip script

For all your models, accessories, effects, motion data etc. you need to use this script to unpack it.

This will preserve all the original Japanese filenames etc. and this is important for your models and effects, for example.

Most archive formats are supported!

Dependencies for the script:

p7zip-full p7zip-rar convmv

to install them run this command:

sudo apt install p7zip-full p7zip-rar convmv

once these are installed you go to your MMD folder in a terminal and run the following commands:

wget https://learnmmd.com/wp-content/uploads/2020/12/linux-unzip-tool.tar.gz
tar -xf linux-unzip-tool.tar.gz
chmod +x Decompress-as-Japanese.sh

instructions on how to use will appear on screen once you run it.

Run the file using:

./Decompress-as-Japanese.sh

Step 4 Setting up Winetricks

NOTE: EVEN IF YOU HAVE WINETRICKS INSTALLED FOLLOW THE STEPS BELOW.

To use Winetricks we need to set up a few dependencies first.

These packages are aria2 binutils, cabextract, fuseiso, p7zip-full, policykit-1, unrar, unzip, xdg-utils, xz-utils and zenity

install them with the following:

sudo apt install aria2 binutils cabextract fuseiso p7zip-full policykit-1 unrar unzip xdg-utils xz-utils zenity

My autoinstall script will setup winetricks for us.

Step 5 setting up MMD

UPDATE 29-08-2021: I have updated the script after doing some research. The script now also installs all the fonts needed for MMD. (Thanks to INFINITY)
UPDATE 23-04-2022: After doing further research I have patched the install script. It will now correctly install quartz.dll & Updated DXVK version as well. (Thanks INFINITY)
Update 13-02-2023: Updated script to use newer version of DXVK.
Update 09-01-2025: Some minor enhancements and testing on Arch Linux (working)

Now we get to the MMD side of things.

For MMD we are gonna set up a special wineprefix named WineMMD64, this will be a hidden folder in the home directory.

I have found a script online that does everything that is needed for MMD to run automatically. (credit to Ginga8) This one is slightly outdated with the latest winetricks and ubuntu builds. I have modified it to work with the latest winetricks and setup DXVK for us.

Download and extract my scripts using the following commands.

CD <Path to your MMD folder>
wget https://learnmmd.com/wp-content/uploads/2025/01/WineMMD64.zip
unzip WineMMD64.zip
chmod +x WineMMD64Setup

Now you can run it using the following command:

bash WineMMD64Setup

This might take a while depending on your internet speed.

If the installation fails you can delete the folders .WineMMD64 and mmdtemp in your home directory. and try again. (if you cannot see it, press ctrl+h to reveal hidden folders)

Sometimes Winetricks will fail downloading one of the required libraries. (you can try deleting the winetricks folder in /home/<username>/.cache this will have winetricks re-download all the files)

If the installation fails again, try to look for errors and search them online or ask in the comments below.

Step 6 download and set up MMD + MME

Once you have done the last step, we can finally download and set up MMD

You can download the latest versions from the Download page here on LearnMMD or the VPVP page (on the VPVP page, you want item 1.4) and the latest version of MME (v037 as of this writing).

  • Use the unzip tool from earlier to unzip both archives. (this is to preserve the Japanese characters)
  • put MMD into a folder of choice.
  • Install MME as normal by putting the 3 DLL files in the same folder as MikuMikuDance.exe
  • Put the MikuMikuDance file included in the archive downloaded before in the same folder as MikuMikuDance.exe
  • Make it executable with the following command:
chmod +x MikuMikuDance

Step 7 Launching MMD and doing final fixes

Now that everything is set up to go, get ready to run it for the first time!

If you got the script from the last step you can run it from the terminal.

Go to your MMD folder in a terminal window and run:

bash MikuMikuDance

Alternatively you can start MMD with:

LANG=ja_JP.UTF-8 WINEPREFIX=~/.WineMMD64 wine MikuMikuDance.exe

Once you are in MMD you will see a garbled mess. This is an issue that is not on MMD’s end, it has to do with how Wine renders the window (I think)

MMD is a garbled mess when running in wine by default

If you get the following message:

This means MME could not start due to an error. Now this can mean many things.

When this happens MMD will crash afterwards.

I experienced this error for a while, these are some things to look for to fix this:

  • Check if you got the proper GPU drivers installed.
  • Check if your GPU Supports Vulkan/DXVK
  • Delete the folder: ~/.WineMMD64 and the contents of the folder ~/.cache/winetricks/ Then run the script again.
  • Try to install without DXVK, to do that hit CRTL-C when the script asks to press enter to install DXVK. Then delete the folder ~/mmdtemp.
  • This can also be a problem on Wine’s end. To fix try the above to install without DXVK. This usually happens after Wine updates. Please let me know in the comments if this happens!

Fixing MMD

Now here is where the multi monitor setup I mentioned at the start comes in handy.

To fix the issues we have do the following:

  • Go to the VIEW dropdown menu, select SEPARATE WINDOW. This will put your render window and controls on different windows. If you’ve got 2 monitors you can split them over 2 like I do.
  • Open up the MME Effect mapping window, select the tool dropdown and click “Skip Device Validation” this is for compatibility issues with some effects. (Credit to petite philosophie)
  • When it says MikuMikuDance.exe is not responding when loading files. Just let it wait, this may take a bit depending on what you are loading.

Here are some images: (Click on the images for the full size)

When MMD shows this, just let it wait. It is loading.

Here is how it looks on my system:

(Click image for full-size)

Summary

SO! here you go! Now you can run MikuMikuDance on Linux! Using Wine and DXVK we were able to set everything up.
My scripts will set up a special Wineprefix with all the required libraries installed. Have fun with MMD!

Known issues and notes

Nothing is perfect. What we are doing here is using a workaround, with several compatibility layers to run a Windows program on Linux. Like you have already seen, the render window of MMD is broken. You have to use separate screen to make it work. It is purely visual.

Some MME effects don’t like DXVK either. Although using DXVK has been able to make many effects like Raycast run much smoother. Yes Ray-MMD does run using this method. I haven’t tested many effects but most should run.

If you run into issues and you want to reinstall, Rename .WineMMD64 in your home directory to something else and re-run the script.

This guide does not work for PMXe! it required different libries setup

I want to know what does and doesn’t run, when it comes to models and effects. Put your experiences in the comments.


– SEE BELOW for MORE MMD TUTORIALS…


— — —


– _ — –


Visit the LearnMMD.com Homepage! Plenty of Mikumikudance instruction and info!

More MMD Tutorials...

Reader asks how to create MMD artwork... stuff like posing, camerawork?

A reader asks... Is there a tutorial on how to create MMD artwork, like those you ...read more

Learn MikuMikuDance in Small Steps! New LearnMMD Video Series

Learn MikuMikuDance in Small Steps. Where can I find easy-to-follow MMD instructions on YouTube? How ...read more

Apply Multiple Effects on an Entire MMD Model Using M4Layer Effect

How can I apply multiple effects to an MMD model? Can I use more than ...read more

MMD Plugin Manager... I Found a Treasure!

What sorts of MMD Plugins are there? MMD Plugin Manager? MMD Plugins. Plugin MMD. More ...read more

2025: Hatsune Miku is 18... but she is designed to be always 16 Years. Old by design and in reality!

Finally, in 2023, Hatsune Miku is 16 years old! but in August of 2025, she ...read more

SEARCH LearnMMD.com... it's Easy!

Search LearnMMD.com to find your answers! With the posting of this article, LearnMMD.com has 758 tutorials ...read more

Linux running MMD, MMD Tutorials, Nuts & Bolts, Parkeerwacht Tags:DXVK, Linux, mikumikudance, MMD, MME, Wine

Post navigation

Previous Post: Making more complicated MMD dance motions – Some new notes…
Next Post: Loading Background AVI Files into MMD (2021 Edition)

Related Posts

  • The MMD 7.39 VIEW MENU Options MENU Option Descriptions
  • MMD Camera Work makes motions fit the song.
    MMD Camera Work made the motion fit the song! "the making of" my video
  • Free Download MikuMikuDance MMD
    Free Download MikuMikuDance 3D animation software Intro to MikuMikuDance
  • MMD Fill Lights Part 2 – (Ray-MMD) MMD Tutorials
  • Customized Skydome replace stages, enhance MMD animations MMD Tutorials
  • Creating MMD Diva Performance Animations – An Overview "the making of" my video

More Related Articles

KiraKira-sparkleV2 beautiful colored sparkles. KiraKira-sparkleV2 MME Effect adds COLOR to KiraKira! KiraKira-SparkleV2
When you add background AVI files, you can motion trace! Loading Background AVI Files into MMD (2021 Edition) Add Background Pictures and AVI
Make Your YouTube Channel Popular with Engrossing Introductions MMD Basics
Making MMD Models Complicated Task with much to know! Making Models
Rotate stage to allow ground shadows MMD MikuMikuDance Accessory Manipulation/Adjust
Position Model Parts in PMDE using a placeholder .x Model image Making Models

Comments (50) on “Running MikuMikuDance in Linux using Wine and DXVK”

Comments navigation

Older comments
  1. Antonio225 says:
    September 5, 2025 at 4:38 pm

    Hey, many thanks for the guide! I followed it a long time ago (before the 2025 update) and a lot it’s almost perfect (I’m on Arch Linux KDE). My only problem is that japanese text do not show in textbox input (the input when you type the text on, basically what you see if you type “input” in HTML but you got the point) japanese text show just fine in labels and… Just basic text views, but not in textboxes. I’m running MMD with “LANG=ja_JP.UTF-8 WINEPREFIX=~/.WineMMD64 MikuMikuDance.exe” btw. It almost looks like wine uses a different font (that doesn’t have japanese characters) only for the textinput. Do I need to give other information? Thanks in advance. Also I’m very sorry I posted this twice but I mispelled some things

    Reply
  2. Antonio225 says:
    September 5, 2025 at 4:05 pm

    With “textbox input” I ment what you would see if you make an input tag in HTML. When I typed it, it… Put something else for some reasons. Sorry

    Reply

Comments navigation

Older comments

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Download the latest version of MikuMikuDance!
See the MMD Step-by-Step instructions page!
Learn how to make your own MMD motions!
LearnMMD.com
  • Breathing “SOUL” into MMD models and scenes using Fine Art Techniques Advanced Shader Technique
  • MMD vs MMM Bullwood
  • Download MME v037 in English 32-Bit or 64-Bit from LearnMMD.com Download MME MikuMikuEffects
  • LearnMMD.com _ MikuMikuDance MMD Tutorials
    A Discussion on the subject of Bone Deformation Hierarchy Bandages
  • See LearnMMD’s New Crop-Transition Panel Video Google SketchUp and MMD
  • Dummy Bones Hold Accessories in MikuMikuDance Dummy Bones
  • MMD Elektrika Motion gets new life!
    Ancient MMD Elektrika Motion Gets NEW Life! "the making of" my video
  • Multiply of Bone Frame Position-Angle Resizes Motions to fit your Model CommanderZoey

Copyright © 2022 Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software and Instructions..

Powered by PressBook Premium theme

Go to mobile version