Homework #1 - Getting Familiar with PuTTY and gedit
10 Points
Before you begin: Computers expect you to do things exactly as they require (for example capitalization often matters so "A" is different from "a". Therefore, you *must* follow directions carefully, and if something goes wrong, try again at least once, more carefully. Good luck.
Purpose: This first homework is just trying to get you familiar with doing something useful on the linux computers first with PuTTY and then with gedit. Please be sure to do all twelve steps (instructions appear below the summary). Also please note, Xming must be started BEFORE beginning this assignment otherwise you'll get the warning: Gtk-WARNING **: cannot open display: localhost:10.0. To start Xming, just double click on the Xming icon on your desktop (by default it is placed there when installing Xming. If you have not installed Xming yet, you can get it here).
Summary: Using PuTTY do the following:
Then using the PuTTY program, do the following:
- show a list of your files (step 9),
- make a copy of the file you made in step 3 above (step 10),
- submit this new file to your instructor for grading (step 11), and
- log off the linux computer (step 12).
Instructions:
Follow the instruction written in bold exactly in the order presented below and you should be successful.
Note: whenever you are asked to type something in quotes, type it exactly as it appears (without the quotes of course) except for what appears in italics. If something appears in italics it means you are to substitute the appropriate information where the italics appear. For example: if you were asked to type: "yada username <CR>", you would actually type something like, "yada joeschmo <CR>" (but without the quotes), if joeschmo was your username. Get it?
By the way, <CR> stands for the "Enter" key (actually it stands for carriage return from the days long ago days of typewriters). Whenever you see <CR>, press the "Enter" key. Since we always type a <CR> after every command, I'll not mention it anymore, but be sure to do it.
1. Login to the System with PuTTY.
You can do this by following the directions on the course web page (first lesson) also located here. Then come back to this page
2. Open the gedit program.
You can do this by typing the command "gedit &" at the linux command prompt (the prompt looks like john: ~> or james: ~>).
3. Copy a Sample Program from the Web Site to the Linux Computer:
4. Save the Sample Program to the Linux Computer as "hello.cpp".
5. Compile hello.cpp
6. Run the program by typing"a.out" (make sure you type "a.out" in the terminal window, that's the place where you run linx commands).
7. Submit your program for grading by typing "submit" and answering the questions
8. Close gedit by clicking on the red 'X' or choosing "File ... Quit" from the menu.
9. Show a list of your files by typing "ls" in the PuTTY window.
10. Make a copy of "hello.cpp" by typing "cp hello.cpp hello_copy.cpp"
11. Submit "hello_copy.cpp" for grading by typing "submit" and answering the questions
12. Log off the linux computer by typing "exit"
This completes the assignment