Congrats! Your computer is all set up! On Windows 10 The system should tell you that you have not submitted anything for it yet, and thus have 0%. You don’t want to add a password here because that will make using the key extremely inconvenient. Replace uniqid with your own uniqid and hit enter several times to accept the default options. To paste to the terminal you need to use Ctrl-Shift-V. When you see commands in this font, you should copy and paste the lines one by one into the terminal to run. This key is essentially a file that holds a very long password (private key) and another file that holds a very long username (public key).īelow this paragraph we have two commands on separate lines. We will be using an SSH (secure shell) key to do this. Next we need to give your computer automatic access to your gitlab account. Make sure you can log in to this website. We will be using the EECS Gitlab at to hold and access your git code repository. This way you can feel easy about experimenting with your code because old versions of it will be kept safe. Git is a version control system, meaning that it helps you keep track of all the changes you make to your code and commit over time. We will be using git to work with our code in this class. This may be different on other flavors of Linux.
If you are not, you can get there by running cd ~ Install GCC (GNU Compiler Collection) You should be in your home directory, indicated by the prompt ending with ~$ (or similar). Please feel free to ask questions and get help with this setup! The main goal of today is to complete all this setup. If you are running Windows 10 or Mac OS, there are additional steps further below to complete first before continuing with the main Ubuntu instructions. Regardless of whether the computer you use for this class is on Linux, Mac OS, or Windows 10, you should be able to do everything in almost the same way, just with a small amount of different setup right now in the beginning. Git will also help prevent you from losing your hard work, because every time you commit your code to (which we are using for class instead of ), that version of your code will be saved for you. Even though you will work on your code for this class by yourself, Git will make it easy for me to access your code for automatic grading and supply you with basic code and resources for assignments.
Git is a piece of software for managing code when multiple people are making various changes to that code on multiple computers. This class system is based on the software Git: This system will allow you to get instant feedback on the correctness of your solutions, check your grades, check due-dates, and answer “clicker-style” questions during class discussions. We will be using an automated submission system for “in-class” problems and homework. Getting started with the class submission system
Today, we will mostly just copy and paste commands I have written for you.
In our next class we will really dig into bash commands, how to put them together, and how to write scripts with them. Many commands will have some amount of output that appears on the screen after the command you enter, but not all will. Be careful because commands often have to be exact and a change in spaces or capitalization can make a command not work! Unlike in most programs, to copy text you need to use Ctrl+Shift+C and to paste you need Ctrl+Shift+V. If there are multiple lines, you should run them one by one.
You can often take this as a cue, that this text can be entered onto the command line, either as a full command or as part of one. Whenever we have commands to enter in this document, we will use a “code block” that looks like this or: We can either run these commands directly on the command line, or we can put these commands into a script file and run the whole script in a single command. The basic philosophy of the Linux command line is to have lots of very simple commands and to make it easy to use these commands together.
Including the word “bash” in any online searches will probably help you find relevant results! While there are many other shells you can install and use, most of the information online is about bash. The program that actually manages the terminal window is called a “shell”, and the most common shell is called bash (Bourne again shell). You can open the terminal by going to “applications” in the top left corner of your screen, typing “terminal”, and hitting enter. Setting up the ROB 502 command line system Linux and the Bash TerminalĪlmost everything we do in ROB 502 will be on the Linux command line, or terminal.