The combination of SSH and Emacs (or VI) on the server is effective and sufficient.
However, there may be something better, something worth investing in.
What do we want and need?
Atom gives us an editor, but not preview or cloud storage.
We'd like something that does all three.
Let's talk about some of the concepts underlying that last section:
Visual Studio Code is an editor that, with an extension pack, can edit files on remote machines. We'll use it to edit files on Tempest, the CS department server.
This also has the pleasant side effects that (1) your files are backed up, (2) you can keep them until you graduate, and (3) it doesn't cost the department.
Follow these instructions to install VSC and the remote development extension
Last time, our goal was to edit some MySQL batch files and run them. To help us catch up, and to learn a bit of how we will use VSC in our course, let's follow the following steps. I'll explain each step.
youracct@cs.wellesley.edu
. I've checked
that all of you who are enrolled in the course have a "shell" account
(meaning you can run commands on the server).public_html
and the cs304
folder you created on Friday.cs304
folder, click the "new folder" icon and create that folderNow we're going to switch to the terminal for a bit, because certain commands are much easier that way. They are unix commands, which are worth learning in their own right.
ls
command. That will list your current directory. You might
see some 111 or 115 folders. You'll definitely see a public_html
folder and your cs304
foldercd cs304
command. That puts you "in" that directory.ls
command to see what's in that directory. Probably the part1
folder from last time.cp -r ~cs304/pub/downloads/part2 .
That recursively copies that folder from
the course directory to your current directory.cs204
folder and you'll see the
new folders and files.Here's what that sequence of commands looks like:
New CentOS 7 [cs304guest@tempest ~]$ ls cs111 cs115 cs304 public_html New CentOS 7 [cs304guest@tempest ~]$ cd cs304 New CentOS 7 [cs304guest@tempest cs304]$ ls part1 New CentOS 7 [cs304guest@tempest cs304]$ cp ~cs304/pub/downloads/part2 . New CentOS 7 [cs304guest@tempest cs304]$ ls part1 part2
Let's practice our development cycle:
When you're done with some editing:
exit
command to close any terminals you opened