part 1: getting the raspberry pi up and running and explore ... · web view2. the screen will come...

17
Lab Report Cover Sheet DeVry University College of Engineering and Information Sciences Course Number: CEIS101 Professor: Lab Number: 2 Exercise Title: Get the Raspberry Pi up and running and explore the desktop. Submittal Date: Click here to enter a date. Part 1: Getting the Raspberry Pi up and running and explore the desktop PARTS LIST The Raspberry Pi components Raspberry Pi motherboard Plastic case micro SD card (contains Linux operating system) HDMI cable (RGB or analog cables could be used as substitute) USB keyboard and mouse Micro USB power supply Ethernet cable or micro USB wireless adapter Power supply

Upload: others

Post on 25-Sep-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Part 1: Getting the Raspberry Pi up and running and explore ... · Web view2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It

Lab Report Cover Sheet DeVry University

College of Engineering and Information Sciences

Course Number: CEIS101Professor:Lab Number: 2

Exercise Title: Get the Raspberry Pi up and running and explore the desktop.

Submittal Date: Click here to enter a date.

Part 1: Getting the Raspberry Pi up and running and explore the desktop

PARTS LIST

The Raspberry Pi components

Raspberry Pi motherboard Plastic case micro SD card (contains Linux operating system) HDMI cable (RGB or analog cables could be used as substitute) USB keyboard and mouse Micro USB power supply Ethernet cable or micro USB wireless adapter Power supply

PROCEDURE

A. Assembling the Raspberry Pi. The images are from a Raspberry Pi 2. You may have a model B or B+. The setup will be similar.

Page 2: Part 1: Getting the Raspberry Pi up and running and explore ... · Web view2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It

1. Gently place the motherboard in the case. Your case may look like the one pictured with three parts (note, put the motherboard on the bottom part of the case first), or it may be a clear case.

 

 

2. Once it is seated properly, you may add the cover.

 

 

 

Page 3: Part 1: Getting the Raspberry Pi up and running and explore ... · Web view2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It

3. Insert the micro SD card. The micro SD card contains the operating system. In some cases, when you first boot up, it may ask you, "Which operating system?" If you later receive that message, choose Raspbian.

 

 

 

4. Connect your display. You can use an HDMI cable and attach it to a television or monitor with an HDMI port. Or you can use an HDMI to RGB converter to plug it into an older-style computer monitor. 

Page 4: Part 1: Getting the Raspberry Pi up and running and explore ... · Web view2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It

 

 Note: Another way to hook up the device to a display is to use the analog connector to connect directly into a television like you would with some gaming systems.

 

 

Page 5: Part 1: Getting the Raspberry Pi up and running and explore ... · Web view2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It

5. Plug in the USB keyboard and mouse.

 

You may use a standard keyboard, or you may elect to use a small keyboard as shown below. The option is yours.

Page 6: Part 1: Getting the Raspberry Pi up and running and explore ... · Web view2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It

 

 

6. You can connect to a wired network with a Cat 5 cable, or use a USB Wi-Fi adapter for Internet access. The Wi-Fi adapter gives you a lot of portability with your Pi.

 

Page 7: Part 1: Getting the Raspberry Pi up and running and explore ... · Web view2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It

 7. The last step is to plug in the micro USB power supply. There is no On/Off switch on the Pi. Rather, once you plug power into the computer, it turns on.

B.  Starting the Raspberry Pi.

 1. Plug in the micro USB power supply to your electrical wall source.

 

 

 

Page 8: Part 1: Getting the Raspberry Pi up and running and explore ... · Web view2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It

 

 

 2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It will finally come to a stop with a login prompt. Note: It is possible that your Raspberry Pi may start out with something different; for example, a prompt to expand your filesystem. In that case, you can simply use your tab key to move to finish and press Enter. The system will continue and will actually bypass the login and password screen. You will end up on Step 6 below, where you simply enter: startx.

  

 3. Enter the login ID: pi

Page 9: Part 1: Getting the Raspberry Pi up and running and explore ... · Web view2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It

4. The system will respond asking for a password.

5. Enter the password: raspberry

When you type the password, you won't see any letters come up on the screen. Be assured that the system is accepting your passwords. Once you press the Enter key, the system will return several lines of responses on your screen and rest at something that we call the dollar sign

prompt.

6. Enter startx to open the desktop.

Page 10: Part 1: Getting the Raspberry Pi up and running and explore ... · Web view2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It

7. When you enter startx at the dollar sign prompt and press Enter, the system will initiate the desktop. Your screen will look like one of the following two options:

 

Page 11: Part 1: Getting the Raspberry Pi up and running and explore ... · Web view2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It

C. Exploring the desktop

1. Wi-Fi Config - If you have a wireless Wi-Fi USB device, you can configure it here.

2. Pi Store - After connecting to the Internet with your Raspberry Pi, you can explore the Raspberry Pi store. Many things are available for free.

3. Midori - Midori is an Internet browser. How does it compare with IE or Google Chrome?

4. Continue to explore other items of interest on your desktop.

 

Answer the questions on the lab report below and submit to the Dropbox.

What is the purpose of the following programs?1. Epiphany: 2. IDLE3:3. Scratch:4. What is the Windows application that is very similar to the LXTerminal application

on the Pi?5. What’s the difference between IDLE and IDLE3?

6. Do you see any applications in the Pi Store that interest you?

You can install scrot or another application to take screenshots on your Raspberry Pi. How would you install a new program on the Raspberry Pi? Hint: Look up apt-get install.

Part 2:The Pi uses Linux as an operating system. We will introduce some basic commands and explore networking commands in this lab.

Answer the following questions below.

Page 12: Part 1: Getting the Raspberry Pi up and running and explore ... · Web view2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It

1. Open the terminal command line window by double clicking the LXTerminal icon. You should see a window open similar to a DOS window.

2. When we first open our terminal window, we see the prompt: pi@raspberrypi/$. After the $, you can type in a command. One of the most important commands is ls (lowercase L not a 1). This command will list all of the files in your current directory. It is similar to you opening up Windows explorer and looking at the directories and files, or opening up a DOS prompt and typing DIR.

Type in the following command (please note, this is a lowercase L not a 1): ls

What do you see?

3. Another useful command is pwd. This command shows the present working directory, or the directory that you are currently in. This is helpful if you have changed directories and want to know which one you are currently in.

Type in the following command: pwdWhat are the results?

4. You will need to change directories often to perform tasks in the terminal window. Changing directories in Linux is the same command as in DOS. If you have DOS command line experience, this command may be familiar to you.

Type in the following command: cd /tmpHow is the prompt different?

What directory did this command take you to?

Page 13: Part 1: Getting the Raspberry Pi up and running and explore ... · Web view2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It

To move back up to the /tmp directory, type: cd ..

5. There are many commands in Linux. It is helpful to get to know some of them. You can also get help for commands that you do not understand.

To get help, type: man cdWhat do you see?

Be sure that your Raspberry Pi is connected to a network (using a network cable or a Wi-Fi adapter) before running the next few commands.

In your terminal window, we will check our network information, check connectivity, and run a trace route. All of these commands are important for networking professionals.

6. Type the following command: ifconfig

In the above example, the IP address is the inet addr and is: 10.0.2.15, the Bcast is 10.0.2.255, and the Mask is 255.255.255.0

7. What is your computer's IP address, broadcast address, and default mask?

IP ____________________

Page 14: Part 1: Getting the Raspberry Pi up and running and explore ... · Web view2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It

Bcast ____________________

Mask ____________________

8. Research online and briefly describe below what an IP address is:

9. A very helpful tool in networking is the ping command. This command tests network connectivity. Example: ping www.devry.edu Press ctrl–c to stop it.What IP address was listed for devry.edu: ___________________

Choose another website. List the website that you chose and the IP address result from the ping command.

Website: ____________________IP address:______________________

10.The traceroute command shows you the path that an IP packet will take to get to its destination. It is interesting to see a traceroute to a website on the other side of the world and the route that it takes. Run two traceroutes at different times and see where you are hopping to! Let's traceroute to Bangladesh University of Engineering and Technology. Type in the following command: traceroute buet.ac.bd

List at least three of the places on the traceroute: _______________________________# of Hops ____________________

Run the command again. Network paths to destinations change based on factors such as how busy a network link is and certain routers and servers being online or down. Try running the command until you see a difference in the route taken. How was your traceroute different?

Page 15: Part 1: Getting the Raspberry Pi up and running and explore ... · Web view2. The screen will come alive. You will see lines and lines of system response scroll on your screen. It