Here for Threat Modeling Tool 2016 (latest as of 2018-03-23) on a Debian Buster aka ‘testing’. It should be the same for Unbutu, mutatis mutandis apt-get instead of aptitude.
$ sudo aptitude install wine winetricks
For info, the versions at the date of this small how-to were:
- wine-3.0 (Debian 3.0-1)
- winetricks 20180217 – sha256sum: 1b156c6…
Run winecfg:
$ winecfg
…use default settings, Windows 7 (minimum Windows version required for Threat Modeling Tool).
.Net framework 4.5 or higer is required by the Threat Modeling Tool:
$ winetricks dotnet45 corefonts
This will install 4.0, then 4.5, then ask for a “restart your computer” (OK), then install the fonts. Check:
$ winetricks list-installed ------------------------------------------------------ You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug. ------------------------------------------------------ Using winetricks 20180217 - sha256sum: 1b156c616174f41df79d72a90c52eb2b110c63a6e8ecb865d303a8f9f0908924 with wine-3.0 (Debian 3.0-1) and WINEARCH=win64 corefonts dotnet40 dotnet45
Fine. Re-run winecfg: the .Net install had it switched to Windows 2003. Switch it back to Windows 7.
$ winecfg
Install the Threat Modeling Tool:
$ msiexec /i where/you/put/it/ThreatModelingTool2016.msi
Enjoy!
$ wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Microsoft\ Threat\ Modeling\ Tool\ 2016/TMT7.exe
You might want to create an alias for this, for example:
alias tmt='wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Microsoft\ Threat\ Modeling\ Tool\ 2016/TMT7.exe'
Note that depending on your graphic driver, this may not work: the symptom is you may get a black window. An easy workaround is to use a wine virtual desktop. In winecgf graphic tab, check “emulate a virtual desktop”. I’d recommend a size of 1024×768 or higher.