Windows Setup For Turtle and Graphics

If you followed our Set Up Your Windows PC instructions, you’ll need to follow these additional steps to set up your computer labs needing access to the Windows display (e.g. recursion lab that uses turtle, labs that use the graphics package, etc.).

Note that Step A is a one-time installation, but Step B (setting the display variable) you need to type in every time you start a new Ubuntu shell.

Step A. Download Xlaunch and the VcXsrv Windows Xserver

  1. Go to https://sourceforge.net/projects/vcxsrv.

    ../../_images/image54.png
  2. Follow the instructions, by clicking next and continuing.

    ../../_images/image91.png
  3. Select the default installation location (C:\Program Files\VcXsr) and click Install.

    ../../_images/image24.png
  4. The installed VcXsrv is a Windows app. You now need to change some settings. Go to the Search bar in the bottom left and type XLaunch and open that app.

    ../../_images/image82.png
  5. Click the Next button several times until you see an option to Disable access control:

    ../../_images/image72.png ../../_images/image34.png

    Be sure to check the option to Disable access control:

    ../../_images/image42.png
  6. Click Next until you reach the Final configuration screen, and then click Finish.

    ../../_images/image63.png
  7. If you get a warning from the Windows Defender Firewall, make sure you click both checkboxes (Private networks and Public networks), and then press Allow access.

    ../../_images/image17.png

Step B. Set the display variable

After the VcXsrv application is installed, open the Ubuntu terminal and execute the following command that sets up the display variable correctly:

export DISPLAY=localhost:0.0

Now, lab assignments that require plotting, or turtle module, or graphics package should work as desired on your machine. You will do this step each time you open a new terminal window.