Windows Install Instructions#
These instructions will walk you through installing the required Computer Science software stack for COSC 123. Before starting, ensure that your laptop meets the minimum requirements:
runs one of the following operating systems:
Macs:
Latest: macOS 12.1
Recommended: macOS 10.14.6 or higher
Required: macOS 10.11 (El Capitan)
Windows:
Latest: Windows 11
Recommended: Windows 10 (64-bit) or higher
Required: Windows 7 or higher
Ubuntu:
Latest: Ubuntu 21.10
Recommended: Ubuntu 20.04 or higher
Required: version 18.04
can connect to networks via a wireless connection
has at least 25 GB disk space available
has at least 4 GB of RAM
uses English as the default language (if you want TAs or the instructor to help you)
student user has full administrative access to the computer
We will do our best to help you if your laptop does not meet the minimum requirements, but there are no guarantees we will be able to get things to work so be warned.
Web browser#
You are welcome to use most modern browsers that have a WebKit or Gecko backend. Safari, Firefox, Vivaldi, Brave, Edge are all recommended. Google Chrome is not recommended because of the well-documented privacy and tracking issues with Google.
Zoom#
We will be using Zoom in this course for the classes, as well as the labs, and student hours. It is very important that you have the most recent version of Zoom installed, as we will be using many of the features that are only available in more recent versions.
The latest version of Zoom as of January 2022 is: 5.9.1 (3506)
.
You can ensure you have the latest version of Zoom by clicking âCheck for Updatesâ as shown in the screenshot below.
Important
Please note that if you have been relying on the âweb versionâ of Zoom that works only in a browser, this will not work for this course! Please make sure to download the Zoom desktop client for your operating system to fully participate in the course.
Visual Studio Code#
The open-source text editor Visual Studio Code (VS Code) is both a powerful text editor and a full-blown Integrated Development Environment (IDE). Go to https://code.visualstudio.com/download and download the windows version of VS Code. After the download has finished, run the installer and accept the default configuration for all pages except for the following:
Also on the Select Additional Tasks page check all four boxes under âOtherâ
âAdd âOpen with Codeâ action to Windows file context menuâ
âAdd âOpen with Codeâ action to Windows directory context menuâ
âRegister Code as an editor for supported file typesâ
âAdd to PATHâ (this should be selected by default).
Optional On the Select Additional Tasks page, check âCreate a desktop iconâ under âAdditional iconsâ.
VS Code extensions#
The real magic of VS Code is in the extensions that let you add languages, debuggers, and tools to your installation to support your specific workflow. From within VS Code you can open up the Extension Marketplace to browse and install extensions by clicking on the Extensions icon in the Activity Bar indicated in the figure below.
To install an extension, you simply search for it in the search bar, click the extension you want, and then click âInstallâ. There are extensions available to make almost any workflow or task you are interested in more efficient! To do this, search for and install the following extensions:
Extension Pack for Java (0.25.7) by Microsoft
Processing Language (1.4.6) by Avin Zarlez
markdownlint (v0.49.0) by David Anson
GitHub.com#
In MDS we will use the publicly available GitHub.com. Please follow the set-up instructions for both below.
Sign up for a free account at GitHub.com if you donât have one already.
Configure Git on your computer#
Although Git and Bash are two separate programs, we are including them in the same section here since they are packaged together in the same installer on Windows. Briefly, we will be using the Bash shell to interact with our computers via a command line interface, and Git to keep a version history of our files and upload to/download from to GitHub. We will be using the command line version of Git as well as Git through RStudio and JupyterLab. Some of the Git commands we will use are only available since Git 2.23, so if youâre Git is older than this version, we ask you to update it.
Go to https://git-scm.com/download/win and download the windows version of git. After the download has finished, run the installer and accept the default configuration for all pages except for the following:
Optional On the Select Components page, check âOn the Desktopâ under âAdditional iconsâ.
On the Choosing the default editor used by Git page, select âUse Visual Studio Code as Gitâs default editorâ from the drop-down menuâ
Note if you wish to pin Git Bash to the taskbar, you need to search for the program in the start menu, right click the entry and select âPin to taskbarâ. If you instead first launch the program and pin it by right clicking on the taskbar icon, Git Bash will open with the wrong home directory (
/
instead of/c/users/$USERNAME
.
After installation, test if you were successful by opening the Git Bash program. Below is a picture of the Git Bash icon on the Desktop and an opened instance of the Git Bash terminal (we will often refer to this as just âthe terminalâ):
In the terminal, type the following to check which version of Bash you just installed:
bash --version
The output should look similar to this:
GNU bash, version 4.4.23(1)-release (x86_64-pc-sys)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
If you tried to paste the above into the Git Bash terminal, you will have noticed that
Ctrl+V
does not work in Git Bash. Instead you need to right click and select âPasteâ or use theShift+Insert
shortcut. To copy from the Git Bash terminal you simply select the text you want and it is copied automatically.
Via right click you can also reach the settings menu where you can configure Git Bash to your preferences, a couple of tips would be to check âMouse -> Clicks place command line cursorâ and change the font to something more legible, e.g. Consolas (âText -> Selectâ).
Letâs also check which version of git was installed:
git --version
git version 2.28.0.windows.1
You can launch many windows programs from the Bash terminal, e.g. to launch VS Code that we installed previously, you would type in code
, letâs use this to check the version of vscode that we installed:
code --version
1.63.2
899d46d82c4c95423fb7e10e68eba52050e30ba3
x64
Configuring Git user info#
Next, we need to configure Git by telling it your name and email. To do this type the following into the terminal (replacing Jane Doe and janedoe@example.com, with your name and email (the same used to sign up for GitHub), respectively):
git config --global user.name "Jane Doe"
git config --global user.email janedoe@example.com
Note: to ensure that you havenât made a typo in any of the above, you can view your global Git configurations by either opening the configuration file in a text editor (e.g. via the command
code ~/.gitconfig
) or by typinggit config --list --global
.
Setting VS Code as the default editor#
To make programs run from the terminal (such as git
) use VS Code by default, we will modify ~/.bash_profile
. First, open it using VS Code:
code ~/.bash_profile
Append the following lines:
# Set the default editor for programs launch from terminal
EDITOR="code --wait"
VISUAL=$EDITOR # Use the same value as for "EDITOR" in the line above
Then save the file and exit VS Code.
Most terminal programs will read the
EDITOR
environmental variable when determining which editor to use, but some readVISUAL
, so weâre setting both to the same value.
Create your GitHub âPersonal Access Tokenâ#
This is a bit tricky, so please make sure you follow these directions carefully.
Create a Personal Access Token on GitHub.com by clicking this link: settings/tokens; make sure to COPY the token that they give you, it is basically a special password that you can use in the Terminal. Detailed steps are:
Log in to GitHub.com,
Click your picture in the top right,
Click Settings,
Click Developer Settings
Click âPersonal access tokensâ, set the appropriate permissions at the ârepoâ level (see gif below):
Set the Expiration to âNo Expirationâ
Click âGenerate new tokenâ
Save this token somewhere on your computer, you will need it when you clone a repository to your computer.
Donât share your token with anyone and protect it like itâs your password! You will not be able to come back to this page to get your token. If you forget it, or lose it, you can just delete the token and create another one.
Warning
Please make sure you set the expiration date of the personal access token to be âNo Expirationâ, otherwise you will lose access to GitHub at the WORST possible time and have to do this again.
Processing#
To install the Processing Development Environment (PDE), you should follow these steps:
Download the installer for the latest version (v4.0 beta 2) your operating system (Windows, macOS, or Linux)
See the installation instructions for your operating system (adapted from here):
On Windows, youâll have a .zip file. Double-click it, and drag the folder inside to a location on your hard disk. I suggest a location where your other programs are stored. Once itâs moved out of the unzipped folder, you can double-click processing.exe to start.
On macOS, the installer is also a .zip file. Double-click it and drag the Processing icon to the Applications folder. Then double-click the Processing icon to start.
The Linux version is a .tar.gz file. Download the file to your home directory, then open a Terminal window, and type:
tar xvfz processing-4.0b2-linux64.tgz
. This will create a folder. Then change to that directory:cd processing-4.0b2
and then run it by typing./processing
.
Thatâs it!#
You have completed the installation instructions, well done đ! Remember to add a screenshot as instructed in your lab!
Attributions#
Important
This guide has been adapted from the UBC-Vancouver MDS Install stack under a CC-BY-SA 4.0 license.