A microcontroller Raspberry Pi 2 Model B V1.1 RPi

Slides:



Advertisements
Similar presentations
RH030 Linux Computing Essentials
Advertisements

RH030 Linux Computing Essentials
5 Basic utilities When a user logs in to the Linux operating system the directory that they will start in is their home directory. Most users will have.
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
1 CSE 390a Lecture 2 Exploring Shell Commands, Streams, and Redirection slides created by Marty Stepp, modified by Josh Goodwin
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
Linux Linux File System.
The UNIX File System.
CSE 303 Lecture 2 Introduction to bash shell
Guide To UNIX Using Linux Third Edition
Introduction to the Raspberry Pi ® Saman Amighi 10/2013 ® Raspberry Pi Foundation.
Embedded Programming and Robotics Lesson 12 Introducing the Raspberry Pi Intro to Raspberry Pi1.
RaspberryPi Ira Goldstein Siena College. What is a Raspberry Pi? University of Cambridge’s Computer Laboratory – Decline in skill level – Designed for.
Guide To UNIX Using Linux Fourth Edition
Manage Directories and Files in Linux
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
HKOI 2012 TRAINING INTRO TO LINUX /CUHK/SHB123]$ date Sat Feb 18 13:00:00 HKT 2012.
Chapter Two Exploring the UNIX File System and File Security.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
Linux file system "On a UNIX system, everything is a file; if something is not a file, it is a process." Sorts of files (on a Linux system) Directories:
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
Chapter Two Exploring the UNIX File System and File Security.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
Review Please hand in any homework and practicals Vim Scripting Inter-device communication.
CSE 374 Programming Concepts & Tools Hal Perkins Fall 2015 Lecture 2a – A Unix Command Sampler (Courtesy of David Notkin, CSE 303)
Linux Commands C151 Multi-User Operating Systems.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
Intro to Raspberry Pi A Southwest Florida Hackerspace Workshop Presented by: Russell Benzing & Eric Schiffli.
UNIX filesystem CS 2204 Class meeting 2 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
Rasberry pi 2 model B. Selve computeren i rasberry pi’en.
Raspberry Pi Project Control Your Home Lights with a Raspberry Pi.
Embedded Software Design Week II Linux Intro Linux Kernel.
LINUX Zhengli Zhu, School of Life Sciences. Outline 1. ABC of Linux 2. Basic orers of Linux 3. Bash Programming.
An introduction to the Raspberry Pi. What is a Raspberry Pi?  University of Cambridge’s Computer Laboratory  Decline in skill level  Designed for education.
Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree.
RaspberryPi.
Ira Goldstein Siena College
RASPBERRY PI WORKSHOP.
Prepared by: Eng. Maryam Adel Abdel-Hady
Linux 101 Training Module Linux Basics.
Running your own web server
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Welcome to Linux Chap#1 Hanin Abdulrahman.
UBUNTU INSTALLATION
Linux file system "On a UNIX system, everything is a file;
Lecture 2 Working with Files and Directories
A microcontroller Raspberry Pi 2 Model B V1.1 RPi
Some Linux Commands.
C151 Multi-User Operating Systems
Command Line Interface for Beginners
9 Linux on the Desktop.
CSE 374 Programming Concepts & Tools
Engineering Innovation Center
CSE 390a Lecture 2 Exploring Shell Commands, Streams, and Redirection
Exploring the UNIX File System and File Security
Web Programming Essentials:
Exploring Shell Commands, Streams, and Redirection
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
CSE 390a Lecture 2 Exploring Shell Commands, Streams, and Redirection
Welcome to Linux Chap#1 Hanin Abdulrahman.
Welcome to Linux Chap#1.
Computing Essentials Module 1.
Computing Essentials Module 1.
Exploring Shell Commands, Streams, and Redirection
January 26th, 2004 Class Meeting 2
Presentation transcript:

A microcontroller Raspberry Pi 2 Model B V1.1 RPi

Computer in your hand A microcontroller (sometimes abbreviated µC, uC or MCU) is a small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals. The majority of microcontrollers in use today are embedded in other machinery, such as automobiles, telephones, appliances, and peripherals for computer system. A system on a chip (SoC) combines the required electronic circuits of various computer components onto a single, integrated chip (IC). The difference between a SoC and a microcontroller often times is defined by the amount of random access memory (RAM). A SoC is capable of running its own operating system. Sooner or later you just need more power! (Arduino vs RPi)

What can I do with rpi?

40 GPIO (Input /Output) SOC – System On a Chip (Broadcom BCM2836) + 1GB RAM Mounting hole SMSC LAN9514 USB Ethernet controller Power & activity LED’s Close RUN header to reset Pi 4 USB ports DSI Display Connector SD Card (underneath) Switching regulator for less power consumption 10/100 T Base Ethernet port Power - Micro USB 5v HDMI Digital video out CSI Camera Connector 4 Pole 3.5mm jack (stereo audio & composite video)

Older Pi models

85mm x 56mm

Power Can be powered by 4 AA batteries We recommend rechargeable batteries They produce less voltage and better meet the power feed requirements of the RPi

Starting it up Insert prepared SD card (already done) with OS installed Connect HDMI to monitor Connect RCA if HDMI not available Connect a USB keyboard and mouse Connect to a network (Ethernet or wireless USB)

login Standard user = pi Standard password = raspberry

Connecting to the RPi

Enable ssh Enter sudo raspi-config in the terminal Then navigate to ssh Hit Enter and select Enable or disable ssh server.

Where’s my pi? Find out the IP address of your Raspberry. In case you have access to the console you can also type the following command: sudo ifconfig Fing

So what are we looking at? Applications The Desktop environment The Shell Kernel

The Shell, or Bash: Born Again SHell LXTerminal Logged in as user ‘pi’ Logged into this host Home directory (~) Ordinary user LXTerminal

Directory Tree / bin boot dev etc home lib Lost+found media mnt opt proc root run sbin selinux srv sys temp usr var Bin – binaries – small programs that behave like commands in the shell Boot – Linux kernel – heart of the OS Dev – devices – a list of devices Etc – various configuration files for all users Home – directory for each user Lib – libraries – used by different programs Lost+found – corrupted files Selinux – security enhanced Linux srv – sometimes used for storing data (like for FTP) sys – used for Linux OS files temp – temporary files usr – for standard users for programs and files var – files that vary in size (like DB and logs) Media – for managing removable storage devices mnt – for managing removable storage devices that you mount opt – optional software proc – processes used by the Linux kernal root – root user directory (top level admin) Run – programs store data here for ready recall sbin – software reserved for the root user

Moving around in the directory structure Absolute and relative paths cd (change directory) Relative path is like giving directions (refers to a subdirectory) An absolute path is like giving a street address cd [option] [directory] cd /home/pi (absolute path, relative to root) cd ~ (home directory, relative to home location) cd ../../boot cd.. (close directory) cd – (go to previous directory)

Command lines Command –options argument (pi@raspberrypi ~ ls –X ~/python_games) ls – to list directories and files Remember this one: ls –lh (list, long, human)

Command lines for ls -1 = results in a single column instead of a row -a = display all (including hidden) -F = put a symbol beside the filename to indicate file type -h = long format (human readable) -l = long format -m = list separated by comma’s -R = recursive (show directories and contents as well) -r = display in reverse alphabetical order -S = sort results by size -t = sort by date and time last modified -X = sort by file extension

Moving around CTRL + C (end task) Autocomplete with the [TAB] key ↑↓ to cycle through previous commands you have entered Turn screen output into a file using the > symbol (use >> to add something to an existing file) Echo (displays whatever you write after it on screen, use $ to solve maths equations), date, cal

Exercise echo I made this file on > testfile.txt date >> testfile.txt cal >> textfile.txt echo $((8+30+31+30+17)) Days until my Birthday! >> testfile.txt Less testfile.txt Note: keep names simple (capitals, hyphens, symbols can all have meanings)

More commands Mkdir (make directory, can do multiple –p option to make a folder in a folder, -v for verbose) Rm (remove directory, -i for interactive = Y/N for each file, -R for recursive, -f for force) *.txt or testfi*= wildcard [] to match characters (e.g. [abc]*, [^abc]*, [a-c]*, photo[4- 9].jpg) cp (copy paste) mv (move, also = rename) Cat (list the content of files) wc (word count) – gives # of lines, # of words, # of characters

Is your software up-to-date? Sudo = Super User DO Root can be considered a security risk/hole Package manager is called apt in the shell sudo apt-get update sudo apt-cache search games | less sudo apt-get install name Help can be found in many places… try type, help, man (manual), apropos, whatis, info https://wiki.debian.org/ShellCommands https://www.raspberrypi.org/documentation/usage/terminal/

Trolled…. Watch out for: rm –Rf /*

Title and Content Layout with Chart

Two Content Layout with Table Group A Group B Class 1 82 85 Class 2 76 88 Class 3 84 90 First bullet point here Second bullet point here Third bullet point here

Two Content Layout with SmartArt First bullet point here Second bullet point here Third bullet point here Group A Task 1 Task 2 Group B Group C