<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body dir="auto">
<p><br>
</p>
<p>I have not tested this on Windows (I will later this week) - but
others in the class have confirmed that this works on Windows to
get an OpenGL programming installation working. <br>
</p>
<p>Thanks to Nolan for working this out. Please address questions
about it to him.<br>
</p>
<div class="moz-forward-container"><br>
<br>
-------- Forwarded Message --------
<table class="moz-email-headers-table" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Subject:
</th>
<td>CSC315 Stuff Now Working In Windows/WSL</td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Date: </th>
<td>Thu, 15 Sep 2022 13:18:57 -0400</td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">From: </th>
<td>Nolan Robichaux <a class="moz-txt-link-rfc2396E" href="mailto:nolan.robichaux@gmail.com"><nolan.robichaux@gmail.com></a></td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">To: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:pounds@sandbox.mercer.edu">pounds@sandbox.mercer.edu</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hey Dr. Pounds,
<div><br>
</div>
<div>I got our coursework and stuff working on my laptop using
Windows Subsystem for Linux. WSL works seamlessly with Windows
so it might be a more appealing option than installing a Linux
VM, at least for Windows users.</div>
<div><br>
</div>
<div>Here’s what I did:</div>
<div>- Run PowerShell as administrator, type “wsl --install”
(this will install Ubuntu, there’s a way to install a
different distro of your choice but I haven’t looked that up)</div>
<div>- after restarting, open Ubuntu (search for it in the
search bar at the bottom) and do “sudo apt-get install
freeglut3-dev” (you may need to do “sudo apt update” before
this step), then “sudo apt install gcc”, “sudo apt install
g++”, and “sudo apt install make”</div>
<div>- do the ssh key stuff from that handout we got in Ubuntu
for cloning projects from Anvil</div>
<div>- now we have a terminal interface set up, but we can’t run
GUI programs yet. Download VcXsrv for Windows</div>
<div>- These next steps you’ll need to do every time you start
Ubuntu:</div>
<div>- start VcXsrv (it should show up as Xlaunch on your
desktop)</div>
<div>- accept all the defaults, except when you get to
“Additional parameters” at the bottom of the 3rd page, add
“-ac” to that box</div>
<div>- once that starts, go back to Ubuntu and paste this
command: “<span style="color: var(--black-800); font-family:
var(--ff-mono); font-size: var(--fs-body1); font-style:
inherit; font-variant-caps: inherit; white-space: inherit;
-webkit-text-size-adjust: auto;">export DISPLAY=$(cat
/etc/resolv.conf | grep nameserver | awk '{print $2}'):0</span>”</div>
<div>- run your OpenGL program, wait a couple seconds, and your
program should open in a new window!</div>
<div><br>
</div>
<div>I hope this helps! Let me know if it does/doesn’t work for
you. If it does feel free to share it with the rest of the
class.<br>
<br>
<div dir="ltr">Thanks, Nolan</div>
</div>
</div>
</div>
</body>
</html>