Lab: setting up VSCode, SSH, & stearns

Nothing to hand in for this one. Just make sure you do it and get your questions answered if you have any.

This term, you're going to write a web application. Though it is possible to run a web application entirely on your own computer, it is also important to learn how to deploy your application on a server that's accessible from the public internet. In a few weeks, we'll look at how to deploy your application on a Carleton server.

In preparation for that part of the course, you need to set up your computer with Visual Studio Code and an extension that enables VSCode to login to the server using the Secure Shell Protocol (SSH). This short lab is intended to guide you through that process.

Did you already take CS208 Intro to Systems?

If so, you are probably ready to roll. To test it, make sure you can login to your account on stearns.mathcs.carleton.edu.

Install Visual Studio Code

Connect to stearns.mathcs.carleton.edu

Set up your working space on stearns

Log out of stearns

Click on the bottom-left icon ("SSH: stearns.mathcs.carleton.edu"), scroll to the bottom of the resulting drop-down menu, and select Close Remote Connection.

A typical work session

You're all set up now, and won't need to do most of the steps above anymore. This section describes a typical session with VSCode and stearns.

One caveat about working on the lab computers

When you logout of the computers on 3rd Olin, your changes on that computer are discarded. So, for example, if you did Add New SSH Host on an Olin 310 computer, the resulting menu option would not be there anymore when you returned to that computer later. This is one of many reasons I encourage you to do most of your work on your own computer.

That's it!