<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.thedarkmod.com/index.php?action=history&amp;feed=atom&amp;title=VirtualBox%3A_Virtual_machine_with_Linux_for_TDM</id>
	<title>VirtualBox: Virtual machine with Linux for TDM - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.thedarkmod.com/index.php?action=history&amp;feed=atom&amp;title=VirtualBox%3A_Virtual_machine_with_Linux_for_TDM"/>
	<link rel="alternate" type="text/html" href="https://wiki.thedarkmod.com/index.php?title=VirtualBox:_Virtual_machine_with_Linux_for_TDM&amp;action=history"/>
	<updated>2026-04-29T16:34:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.thedarkmod.com/index.php?title=VirtualBox:_Virtual_machine_with_Linux_for_TDM&amp;diff=22718&amp;oldid=prev</id>
		<title>Stgatilov: Some updates about mouse integration</title>
		<link rel="alternate" type="text/html" href="https://wiki.thedarkmod.com/index.php?title=VirtualBox:_Virtual_machine_with_Linux_for_TDM&amp;diff=22718&amp;oldid=prev"/>
		<updated>2019-01-27T07:49:25Z</updated>

		<summary type="html">&lt;p&gt;Some updates about mouse integration&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:49, 27 January 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; Virtual machine is perfectly suitable for everything &amp;#039;&amp;#039;&amp;#039;except running the game itself&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; Virtual machine is perfectly suitable for everything &amp;#039;&amp;#039;&amp;#039;except running the game itself&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;While you can build TDM and build + test tdm_update, running the game engine in a virtual machine is not a good idea, mainly due to OpenGL drivers required.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;While you can build TDM and build + test tdm_update, running the game engine in a virtual machine is not a good idea, mainly due to OpenGL drivers required.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As of 2.06, it is yet possible to run the game in VirtualBox, but: with low FPS, without any modern graphical features, and with &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;broken &lt;/del&gt;mouse &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;input&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As of 2.06, it is yet possible to run the game in VirtualBox, but: with low FPS, without any modern graphical features, and &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;probably &lt;/ins&gt;with &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;some &lt;/ins&gt;mouse &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;weirdness&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For simplicity, this guide sticks to the simplest case: Ubuntu distribution, LTS version (e.g. Ubuntu 16.04).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For simplicity, this guide sticks to the simplest case: Ubuntu distribution, LTS version (e.g. Ubuntu 16.04).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l118&quot;&gt;Line 118:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 118:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you are lucky, you will see TDM main menu =)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you are lucky, you will see TDM main menu =)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;try &lt;/del&gt;to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;move your &lt;/del&gt;mouse &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;but it sticks &lt;/del&gt;to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;window/screen boundaries&lt;/del&gt;, then &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;open game console (Ctrl + Alt + tilde) and type command &lt;/del&gt;&amp;lt;tt&amp;gt;in_nowarp 1&amp;lt;/tt&amp;gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;there&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;have problems with mouse, go to &quot;Input&quot; menu and click on &quot;Mouse Integration&quot; &lt;/ins&gt;to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;disable it. Then click into VM and it will grab &lt;/ins&gt;mouse &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;properly.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is a stupid hack: &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the mouse will still be broken for &lt;/del&gt;you&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, but you would at least &lt;/del&gt;be able to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;navigate through menu, start mission, and fortunately find some guard to bash you.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Press right Ctrl key when you want to return back to host OS.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If you bind some keys to &quot;turn left&quot; and &quot;turn right&quot; actions, then you can freely roam using keyboard&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If you don&#039;t want &lt;/ins&gt;to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;disable mouse integration&lt;/ins&gt;, then &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;you can try to set &lt;/ins&gt;&amp;lt;tt&amp;gt;in_nowarp 1&amp;lt;/tt&amp;gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;in game console&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is a stupid hack: you &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;won&#039;t &lt;/ins&gt;be able to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;play well with it&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Aside from issues with mouse and old &amp;amp; slow OpenGL, the TDM runs perfectly fine inside VM.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Aside from issues with mouse and old &amp;amp; slow OpenGL, the TDM runs perfectly fine inside VM.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Stgatilov</name></author>
	</entry>
	<entry>
		<id>https://wiki.thedarkmod.com/index.php?title=VirtualBox:_Virtual_machine_with_Linux_for_TDM&amp;diff=20453&amp;oldid=prev</id>
		<title>Stgatilov: First version</title>
		<link rel="alternate" type="text/html" href="https://wiki.thedarkmod.com/index.php?title=VirtualBox:_Virtual_machine_with_Linux_for_TDM&amp;diff=20453&amp;oldid=prev"/>
		<updated>2018-06-24T08:39:28Z</updated>

		<summary type="html">&lt;p&gt;First version&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This guide was written for TDM 2.06.&lt;br /&gt;
&lt;br /&gt;
== Intro ==&lt;br /&gt;
&lt;br /&gt;
While Windows is the main platform of TheDarkMod, Linux is also officially supported.&lt;br /&gt;
If you use Windows as the main OS, you may find it useful to have a Linux VM to fix any platform-specific issues.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; Virtual machine is perfectly suitable for everything &amp;#039;&amp;#039;&amp;#039;except running the game itself&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
While you can build TDM and build + test tdm_update, running the game engine in a virtual machine is not a good idea, mainly due to OpenGL drivers required.&lt;br /&gt;
As of 2.06, it is yet possible to run the game in VirtualBox, but: with low FPS, without any modern graphical features, and with broken mouse input.&lt;br /&gt;
&lt;br /&gt;
For simplicity, this guide sticks to the simplest case: Ubuntu distribution, LTS version (e.g. Ubuntu 16.04).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Install VirtualBox ==&lt;br /&gt;
&lt;br /&gt;
Go to VB downloads page: https://www.virtualbox.org/wiki/Downloads&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;Windows hosts&amp;quot; link and download installer. Run installer to install VirtualBox.&lt;br /&gt;
&lt;br /&gt;
Most likely you do &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; need the &amp;quot;VirtualBox Extension Pack&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Run VirtualBox, Go to &amp;quot;File&amp;quot;-&amp;gt;&amp;quot;Preferences&amp;quot;.&lt;br /&gt;
Make sure &amp;quot;Default Machine Folder&amp;quot; is set to the path where you want to store your VMs.&lt;br /&gt;
Note that each of them takes about 5-10 GB of disk space.&lt;br /&gt;
&lt;br /&gt;
== Create VM ==&lt;br /&gt;
&lt;br /&gt;
Click on &amp;quot;New&amp;quot; button, switch to &amp;quot;Expert Mode&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;Type&amp;quot; = &amp;quot;Linux&amp;quot;, &amp;quot;Version&amp;quot; = &amp;quot;Ubuntu (xy-bit)&amp;quot; (according to the bitness you want).&lt;br /&gt;
&lt;br /&gt;
Enter name of your VM.&lt;br /&gt;
I &amp;#039;&amp;#039;&amp;#039;recommend having two VMs&amp;#039;&amp;#039;&amp;#039;: the first one with clean install of Ubuntu, and the second one for work cloned from the first one.&lt;br /&gt;
In such case it&amp;#039;s better to name the VM being created &amp;quot;Clean Ubuntu 16.04 xy-bit&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now click on &amp;quot;Create&amp;quot; button.&lt;br /&gt;
Specify &amp;quot;File location&amp;quot; --- that&amp;#039;s where the virtual disk (of size 5-10 GB) will be.&lt;br /&gt;
Click on &amp;quot;Create&amp;quot; button to finish creating VM.&lt;br /&gt;
&lt;br /&gt;
== Configure VM ==&lt;br /&gt;
&lt;br /&gt;
You can now do some changes in VM configuration. Some of them (enabling 3D acceleration) are necessary to run TDM, but most of them are for only better experience.&lt;br /&gt;
It is not necessary to change configuration right now, you can also do it after installing Ubuntu.&lt;br /&gt;
&lt;br /&gt;
Choose your VM and click on &amp;quot;Settings&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
First of all, go to &amp;quot;Display&amp;quot; tab and check the &amp;quot;Enable 3D acceleration&amp;quot; checkbox.&lt;br /&gt;
This allows OpenGL programs inside VM to use your GPU almost directly.&lt;br /&gt;
You may also want to bump &amp;quot;Video Memory&amp;quot; e.g. to 64 MB here, although it seems to have no effect.&lt;br /&gt;
&lt;br /&gt;
Second, go to &amp;quot;System&amp;quot; tab. You probably want to increase &amp;quot;Base Memory&amp;quot; to at least 2 GB.&lt;br /&gt;
Open &amp;quot;Processor&amp;quot; subtab and increase &amp;quot;Processor(s)&amp;quot; slider to the number of physical cores your CPU has. This allows you to do parallel builds.&lt;br /&gt;
&lt;br /&gt;
Then, go to &amp;quot;Storage&amp;quot; tab. Choose &amp;quot;Controller: SATA&amp;quot; and enable the checkbox &amp;quot;Use Host I/O Cache&amp;quot;. This speeds up file access, although probably it does not affect shared folders.&lt;br /&gt;
&lt;br /&gt;
Lastly, configure shared directories in &amp;quot;Shared Folders&amp;quot; tab. Generally, you want to share the root of all darkmod stuff (both source code and assets), so that you can access it directly on Linux.&lt;br /&gt;
So click the button to add new shared directory, then choose the &amp;quot;Folder Path&amp;quot; on your computer, enable &amp;quot;Auto-mount&amp;quot; checkbox, and hit &amp;quot;OK&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Also it might be convenient to enable copy/pasting from guest to host and back. In &amp;quot;General&amp;quot; tab, open &amp;quot;Advanced&amp;quot; subtab, and set &amp;quot;Shared Clipboard&amp;quot; to &amp;quot;Bidirectional&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Install Ubuntu ==&lt;br /&gt;
&lt;br /&gt;
Go to alternative download page on Ubuntu website: https://www.ubuntu.com/download/alternative-downloads&lt;br /&gt;
&lt;br /&gt;
Go to BitTorrent section. Choose the LTS version you like, e.g. &amp;quot;Ubuntu 16.04 Desktop (64-bit)&amp;quot;.&lt;br /&gt;
Note that you can choose the bitness of OS (32-bit or 64-bit) here.&lt;br /&gt;
Keep in mind that you can only run TDM on Linux guest of same bitness: you cannot run 64-bit TDM on 32-bit Linux guest, and you cannot run 32-bit TDM on 64-bit Linux guest.&lt;br /&gt;
Starting from 18.04, there is no 32-bit version of Ubuntu, which makes it impossible to run 32-bit TDM on newer Ubuntu in VirtualBox.&lt;br /&gt;
That&amp;#039;s why I recommend using 16.04 version for now.&lt;br /&gt;
&lt;br /&gt;
Run VirtualBox. Choose the freshly created VM and click &amp;quot;Start&amp;quot; button to run it.&lt;br /&gt;
When asked for start-up disk, choose the Ubuntu ISO just downloaded.&lt;br /&gt;
&lt;br /&gt;
When Ubuntu starts up, click on &amp;quot;Install Ubuntu&amp;quot; button.&lt;br /&gt;
You should enable the &amp;quot;Download updates while installing Ubuntu&amp;quot; checkbox. Aside from that, just agree to whatever defaults installer throws at you.&lt;br /&gt;
Proceed to the end of installation process.&lt;br /&gt;
&lt;br /&gt;
== Configure Ubuntu ==&lt;br /&gt;
&lt;br /&gt;
In order to run TDM, OpenGL driver is needed, which can be installed with &amp;quot;VirtualBox Guest Additions&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Run your Ubuntu VM. In VirtualBox menu, choose &amp;quot;Devices&amp;quot;-&amp;gt;&amp;quot;Insert Guest Additions CD image&amp;quot;.&lt;br /&gt;
When a dialog box appears suggesting to install stuff, click on &amp;quot;Run&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
The next thing to be done is to allow your user access shared directories.&lt;br /&gt;
Open terminal and execute the following command (replace &amp;lt;tt&amp;gt;yourUserName&amp;lt;/tt&amp;gt; with name of your user in Ubuntu):&lt;br /&gt;
    sudo usermod -aG vboxsf yourUserName&lt;br /&gt;
&lt;br /&gt;
Finally, shut down Ubuntu.&lt;br /&gt;
&lt;br /&gt;
Congratulations!&lt;br /&gt;
Now you have a fresh Ubuntu VM ready for building and maybe running TheDarkMod !&lt;br /&gt;
&lt;br /&gt;
== Clean/work clones ==&lt;br /&gt;
&lt;br /&gt;
If you intend to have two versions of VM (a &amp;quot;fresh&amp;quot; one and a &amp;quot;work&amp;quot; one), then it is a perfect moment to clone your VM.&lt;br /&gt;
If you are satisfied with having only one VM, then skip this section.&lt;br /&gt;
&lt;br /&gt;
Right-click your VM and choose &amp;quot;Clone&amp;quot;.&lt;br /&gt;
Better choose &amp;quot;Full Clone&amp;quot; option to make sure VMs are completely separate after cloning.&lt;br /&gt;
Enter the name of your new VM (e.g. &amp;quot;Ubuntu x64 (work)&amp;quot;) and hit &amp;quot;Clone&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Build and run TDM ==&lt;br /&gt;
&lt;br /&gt;
Run your work VM and open terminal.&lt;br /&gt;
&lt;br /&gt;
Go to source code directory in the shared folder. In my case it is:&lt;br /&gt;
    cd /media/sf_TheDarkMod/darkmod_src&lt;br /&gt;
&lt;br /&gt;
From here you can build TDM in the usual way, as described in [http://wiki.thedarkmod.com/index.php?title=The_Dark_Mod_-_Compilation_Guide#Linux the TDM compilation guide].&lt;br /&gt;
Of course, you have to install some packages before first build.&lt;br /&gt;
&lt;br /&gt;
In order to run TDM, go to the assets directory:&lt;br /&gt;
    cd /media/sf_TheDarkMod/darkmod&lt;br /&gt;
And run the freshly built binary:&lt;br /&gt;
    ./thedarkmod.x64&lt;br /&gt;
If you are lucky, you will see TDM main menu =)&lt;br /&gt;
&lt;br /&gt;
If you try to move your mouse but it sticks to window/screen boundaries, then open game console (Ctrl + Alt + tilde) and type command &amp;lt;tt&amp;gt;in_nowarp 1&amp;lt;/tt&amp;gt; there.&lt;br /&gt;
This is a stupid hack: the mouse will still be broken for you, but you would at least be able to navigate through menu, start mission, and fortunately find some guard to bash you.&lt;br /&gt;
If you bind some keys to &amp;quot;turn left&amp;quot; and &amp;quot;turn right&amp;quot; actions, then you can freely roam using keyboard.&lt;br /&gt;
&lt;br /&gt;
Aside from issues with mouse and old &amp;amp; slow OpenGL, the TDM runs perfectly fine inside VM.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; As of now, hardware acceleration in VirtualBox Linux guest is limited to OpenGL 2.1 with some extensions.&lt;br /&gt;
So when TDM team migrates to something newer (e.g. OpenGL 3), you won&amp;#039;t be able to run TDM in VirtualBox VM any more.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Coding]]&lt;/div&gt;</summary>
		<author><name>Stgatilov</name></author>
	</entry>
</feed>