Networkings Workshop

Exercise: you have 2 minutes to go around the room and identify all networked devices, or those that have the capacity to be networked.

Getting started with the Raspberry Pi

This assumes you have a ready-to-go SD card with Raspbian cloned onto it. If not, see here for how to set one up.

The command line

The most direct way to interact with the computer.

... a shared language across many machines. You are talking to the computer and it is talking straight back to you. You ask and the computer responds. You can take the output of one program and make it the input of the next program. It allows you to automate the operating system (rather than the computer turning you into a proletarian clicking machine). The command line is far from going away. As computers get smaller, the command line interaction becomes a dominant model. 1

As the Critical Engineering Group describes it:

You learn to interact with vastly more devices than before, whether it’s a web server, Internet applicance, Wifi router, autonomous robot, Raspberry Pi, macOS or Linux laptop.

A computer doesn't need to have a screen, keyboard or even be on the same continent to be interacted with - the case for a growing family of devices comprising the so-called Internet of Things.

Rather, by developing an ability to talk to computers - with them talking back - any UNIX or UNIX-like machine can be made a drone, performing automated tasks on their owner's behalf.

Using only the Command Line, learn how to:

We don't have time for all of that, but it's certainly doable within a term or two. But here are the

First steps in the command line

Start up your terminal and type pwd.

This command asks the shell to "print working directory". The shell should give you some output, like /home/pi. That's where we are right now! The string /home/pi is a file path representing our current location in the file system, just like navigating the folders in Apple's Finder.app, or Windows Explorer, etc. Typically, on Unix systems the / is the root directory. All other directories are organized below it.

Work with files

Let's make a test directory to play in:

Now lets create a file in it:

Play with it:

Have Fun

A good way to get familiar with the commandline is with some fun and games! These demos install little toy programs (note: demos based on Ubuntu. Only available on Linux.)

Train:

Wise cow:

Classic games:

Or watch Star Wars: telnet towel.blinkenlights.nl. You'll probably have to install telnet first, see above: sudo apt-get ...

Control remote computers

Further reading

To learn more, see e.g. the Command Line Crash Course. Also check out any of the video tutorials on Lynda.com, i.e. this one. You get free access if you sign up with your KHM email.

Things to do with a Raspberry Pi

Ideas for next week:


-> Networkings workshop