SlideShare une entreprise Scribd logo
1  sur  31
Télécharger pour lire hors ligne
Pi Maker
Workshop
Powered by:
2.Accessing the Pi
http://www.inventrom.com/http://www.robotechlabs.com/
Mayank Joneja
botmayank.wordpress.com
botmayank@gmail.com
Mayank Joneja
Operating Systems
 Many OSs (linux variants)
 Most common one is Raspbian “wheezy”
 Raspbian is a free operating system based on Debian and optimized for
the Raspberry Pi hardware
 Other possible OS include: Arch Linux, ARCOs, RiscOS, Bodhi Linux ports
etc
 Media Center operating Systems based on XBMC include Raspbmc,
OpenELEC as well
 Android is supported for the Raspberry Pi, however given the limited
hardware specs, it works really slowly.
 Source code: https://github.com/Razdroid/userland
 Wiki: https://razdroid.net/
 No Windows support (:P)
Mayank Joneja
Popular Variants for the Raspberry Pi
http://www.makeuseof.com/tag/7-operating-
systems-you-can-run-with-raspberry-pi/
Mayank Joneja
OS Structure
 Hardware does the actual computing
 To interact with hardware the instructions need to
be translated to 1’s and 0’s (Punch cards in the
good ol’ days anyone? )
 The Kernel converts the High level instructions to
Low level ones i.e assembly level language (eg.
MV AX, BX)
 Shell is used to command the kernel to do a
particular task
Mayank Joneja
 The application layer is available to us in the form of the Graphical User Interface
(GUI)
 Sits on the top of the chain
 Converts graphical inputs into shell commands
 Many times the least important for developers
 There is always a shell command for every GUI action but the converse is not true.
Eg.
Ifconfig, ping
Mayank Joneja
NOOBS-New Out of the Box Setup
 NOOBS is a way to make setting up the RasPi for the first time much easier
 You won’t need network access and you won’t need to download any special imaging
software
 Just head to the http://www,raspberrypi.org/downloads page, grab a copy of the NOOBS
zip file, and unpack it onto a freshly formatted SD Card
 When you boot up for the first time, you’ll see a menu prompting you to install one of the
several operating systems into the free space on the card
 The choice means you can boot the Pi with a regular operating system like Raspbian or
with a media centre specific OS like RaspBMC
https://www.youtube.com/watch?v=TyFDaMpdh2c&list
=TLiwsXqzVYEWQk6pVkT9xd8eN0tq10H7ps
Geek Gurl Diaries on
YouTube
Mayank Joneja
SSH
 Secure Shell (SSH) is a network protocol used for
 Secure data communication
 Remote command-line login
 Remote command execution
 It is done via a secure channel over an insecure network
 Needs a server and a client (running SSH server and SSH
client programs respectively)
Mayank Joneja
PuTTY
 One of the most popular SSH clients, also the one that we
use
 Free and open source terminal emulator
 Serial console and network file transfer application
 It supports several network protocols, including SCP, SSH,
Telnet and rlogin
 Link to download PuTTY:
http://www.chiark.greenend.org.uk/~sgtatham/putty/downl
oad.html
 Sessions
Mayank Joneja
Advanced IP Scanner
 Install an IP Scanner
 Need to know the IP for accessing
the Pi via PuTTY
 Enter the correct IP address of the Pi
assigned to your team in PuTTY
Mayank Joneja
Login to the Pi
Username: pi
Password: raspberry
Mayank Joneja
Command Line Interface
 Gives better access over hardware
to do all the awesome things you
want
 Is more prominently used in Linux
through Terminal, however
Command Line Access is available
in almost all devices through some
form of a console, even smart TVs
 On windows machines, one can
access it by going to
Start->Run->cmd
Mayank Joneja
Popular UNIX commands
 sudo date or date : Displays the current date and time
 startx : Launches the GUI (X server)
 [ctrl+c] : breaks the script
 hostname –l : Displays your IP address
 free : Shows how much memory space is available
 ls : Shows list of files in that directory (or folder in Windows)
 cat filename : Shows content of file “filename”
 rm filename : Remove or delete the file (Please don’t try this right now :D)
 sudo mkdir directoryname : Create a new directory
Mayank Joneja
 cd directory name : change directory eg. cd /boot ( in UNIX, ‘.’ refers to current
dir, ‘..’ refers to prev dir, therefore, to go one level up, “cd ..”
 cd : parent directory
 nano filename : Opens file in “nano”, a Linux command line editor that opens up
inside the PuTTY window or the Terminal itself
 * : wildcard, eg. ls d*
 sudo apt-get update : Downloads the package lists from the repositories and
“updates” them to get information on the newest version of packages and their
dependencies.
 sudo apt-get upgrade : Downloads the actual new versions of the packages
based on the lists fetched by the previous command.
Mayank Joneja
Yeh Sudo Sudo kya hai?
 sudo is an abbreviation of “super user do” and is a Linux command
that allows programs to be executed as a super user (aka root user)
or another user. It's basically the Linux/Mac equivalent of the runas
command in Windows.
 It allows you to make changes that affect the complete system and
not just one user
 Some programs or commands require root access, or do not work
until they are preceded by “sudo”
 It’s the equivalent of Run as Administrator on Windows
Mayank Joneja
Easter Eggs!
 An Easter egg is an intentional inside joke, hidden message,
or feature in a work such as a computer program
 Here are a few that are really fun as featured in a post by
Inventrom
http://inventrom.wordpress.com/2014/07/11/easter-eggs-in-
raspberry-pi/
1. sudo apt-get moo
2. sudo apt-get install sl
sl
3. sudo apt-get install vim
vim
:help 42
Mayank Joneja
4. sudo apt-get install emacs
emacs
[Esc]+[x]
doctor
tetris
life
5. sudo apt-get install cowsay
cowsay –f stegosaurus “Mooah”
6. sudo apt-get install fortune
fortune | cowsay
fortune | cowsay –f tux
7. sudo apt-get install telnet
Mayank Joneja
File access through Samba
 Back in the 1990s, Microsoft developed a protocol that allows one Windows machine to
access the files and folders on another Windows machine.
 The protocol, which is known as the Common Internet File System (CIFS) – but
was originally called Server Message Block (SMB), has been implemented on other
operating systems including Linux.
 The most popular implementation is known as Samba and it allows devices like the
Raspberry Pi to act as a CIFS file server. To put it another way, it allows a Windows PC to
mount a folder on a Raspberry Pi and then copy, delete, read and write files on the it.
Mayank Joneja
File access through Samba
 sudo apt-get install samba samba-common-bin
 sudo nano /etc/samba/smb.conf
 Find the line “# security = user” and UNCOMMENT it (remove the hash)
 Scroll down to the [Homes] section and change read only = yes to read only = no
 [Ctrl+X] to leave the nano editor and then [Y] to confirm that the file should be saved,
then press [Enter]
 sudo service samba restart
 sudo service samba reload
 sudo smbpasswd –a pi
Mayank Joneja
 You can now connect to your Raspberry Pi from a Windows machine. Open the
“Computer” window (on Windows 7 ) or “This PC” (on Windows 8) and click the “Map
Network Drive” button on the toolbar (Windows 7) or click the “Map Network Drive” button
under “Computer” (on Windows 8 ).
 In the Map Network Drive dialog, select and unused drive letter from the “Drive:” drop-
down list and enter raspberrypipi in the “Folder:” field. Check “Connect using different
credentials” and click “Finish”.
 Enter pi in the Username field when you are asked to enter the network credentials. Enter
the password you set previously in the password field and click OK.
Mayank Joneja
 Once connected, you can access
the files on the Pi like any other
directory on your harddisk
http://www.maketecheasier.com/
turn-raspberry-pi-into-file-server/
Mayank Joneja
Virtual Network Computing (VNC)
 In computing, Virtual Network Computing (VNC) is a graphical
desktop sharing system
 Uses the Remote Frame Buffer protocol (RFB) to remotely control
another computer
 Transmits the keyboard and mouse events from one computer to
another relaying the graphical screen updates back in the other
direction over a network
Mayank Joneja
TightVNC
 Tight VNC is a free remote control
software package
 sudo apt-get install tightvncserver
 tightvncserver (configure password)
 vncserver :1 –geometry 1024x768 –
depth 24
(Starts a session on VNC display zero
(:1) with full HD resolution
Mayank Joneja
Accessing the VNC Server
 On Windows:
 Run VNC Viewer
 Enter IP Address:session eg. 192.168.1.4:1
 Over Android
 Download Juice SSH ( similar to PuTTY) for command line access
 Download VNC Viewer (by RealVNC Limited) or some similar app
 Over iOS
 Download VNC Client app
 For Chrome
 VNC Viewer for Google Chrome extension by RealVNC
Mayank Joneja
OMXPlayer
 OMXPlayer is a commandline OMX player to play videos and audio for the
Raspberry PI.
It was developed as a testbed for the XBMC Raspberry PI implementation and is
quite handy to use standalone.
 http://omxplayer.sconde.net/
 sudo apt-get update
 sudo apt-get -y install omxplayer
 To play a video: omxplayer myvideo.mp4
 omxplayer –o hdmi myvideo.mp4 to force the audio over the HDMI interface
Mayank Joneja
OMXPlayer Commands
Mayank Joneja
Troubleshoot: No sound over HDMI
 cd /boot
 sudo nano config.txt
 hdmi_drive=2 should be uncommented for the sound to run
through the HDMI
Mayank Joneja
RasPi Dynamic Bike Headlight
https://www.youtube.com/watch?v=Nfk1-XMASrk
Mayank Joneja
Linux Commands List
Mayank Joneja
Mayank Joneja
Mayank Joneja

Contenu connexe

Tendances

Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersDavide Ciambelli
 
Part 1 of 'Introduction to Linux for bioinformatics': Introduction
Part 1 of 'Introduction to Linux for bioinformatics': IntroductionPart 1 of 'Introduction to Linux for bioinformatics': Introduction
Part 1 of 'Introduction to Linux for bioinformatics': IntroductionJoachim Jacob
 
Terminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partITerminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partIKedar Bhandari
 
Archlinux install
Archlinux installArchlinux install
Archlinux installsambismo
 
linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014Peter Martin
 
Part 4 of 'Introduction to Linux for bioinformatics': Managing data
Part 4 of 'Introduction to Linux for bioinformatics': Managing data Part 4 of 'Introduction to Linux for bioinformatics': Managing data
Part 4 of 'Introduction to Linux for bioinformatics': Managing data Joachim Jacob
 
Terminal commands ubuntu 2
Terminal commands ubuntu 2Terminal commands ubuntu 2
Terminal commands ubuntu 2raj upadhyay
 
Part 6 of "Introduction to linux for bioinformatics": Productivity tips
Part 6 of "Introduction to linux for bioinformatics": Productivity tipsPart 6 of "Introduction to linux for bioinformatics": Productivity tips
Part 6 of "Introduction to linux for bioinformatics": Productivity tipsJoachim Jacob
 
Useful linux-commands
Useful linux-commandsUseful linux-commands
Useful linux-commandsHimani Singh
 
Linux Practical Manual
Linux Practical ManualLinux Practical Manual
Linux Practical Manualjorge
 
Part 2 of 'Introduction to Linux for bioinformatics': Installing software
Part 2 of 'Introduction to Linux for bioinformatics': Installing softwarePart 2 of 'Introduction to Linux for bioinformatics': Installing software
Part 2 of 'Introduction to Linux for bioinformatics': Installing softwareJoachim Jacob
 
100+ run commands for windows
100+ run commands for windows 100+ run commands for windows
100+ run commands for windows Anand Garg
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentationnishantsri
 

Tendances (20)

Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for Beginners
 
Part 1 of 'Introduction to Linux for bioinformatics': Introduction
Part 1 of 'Introduction to Linux for bioinformatics': IntroductionPart 1 of 'Introduction to Linux for bioinformatics': Introduction
Part 1 of 'Introduction to Linux for bioinformatics': Introduction
 
Terminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partITerminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partI
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 
Linux
Linux Linux
Linux
 
Archlinux install
Archlinux installArchlinux install
Archlinux install
 
linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014
 
Part 4 of 'Introduction to Linux for bioinformatics': Managing data
Part 4 of 'Introduction to Linux for bioinformatics': Managing data Part 4 of 'Introduction to Linux for bioinformatics': Managing data
Part 4 of 'Introduction to Linux for bioinformatics': Managing data
 
Terminal commands ubuntu 2
Terminal commands ubuntu 2Terminal commands ubuntu 2
Terminal commands ubuntu 2
 
Part 6 of "Introduction to linux for bioinformatics": Productivity tips
Part 6 of "Introduction to linux for bioinformatics": Productivity tipsPart 6 of "Introduction to linux for bioinformatics": Productivity tips
Part 6 of "Introduction to linux for bioinformatics": Productivity tips
 
Useful linux-commands
Useful linux-commandsUseful linux-commands
Useful linux-commands
 
Command-Line 101
Command-Line 101Command-Line 101
Command-Line 101
 
BASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUXBASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUX
 
Linux Practical Manual
Linux Practical ManualLinux Practical Manual
Linux Practical Manual
 
Linux lecture6
Linux lecture6Linux lecture6
Linux lecture6
 
Part 2 of 'Introduction to Linux for bioinformatics': Installing software
Part 2 of 'Introduction to Linux for bioinformatics': Installing softwarePart 2 of 'Introduction to Linux for bioinformatics': Installing software
Part 2 of 'Introduction to Linux for bioinformatics': Installing software
 
List Command at Run
List Command at RunList Command at Run
List Command at Run
 
100+ run commands for windows
100+ run commands for windows 100+ run commands for windows
100+ run commands for windows
 
Unix - An Introduction
Unix - An IntroductionUnix - An Introduction
Unix - An Introduction
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 

Similaire à 2.Accessing the Pi

Raspberry Pi introduction
Raspberry Pi introductionRaspberry Pi introduction
Raspberry Pi introductionLotfi Messaoudi
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Mandeesh Singh
 
Raspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software SetupRaspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software SetupRANAALIMAJEEDRAJPUT
 
Practical Introduction To Linux
Practical Introduction To LinuxPractical Introduction To Linux
Practical Introduction To LinuxZeeshan Rizvi
 
I Am Linux-Introductory Module on Linux
I Am Linux-Introductory Module on LinuxI Am Linux-Introductory Module on Linux
I Am Linux-Introductory Module on LinuxSagar Kumar
 
WinFE: The (Almost) Perfect Triage Tool
WinFE: The (Almost) Perfect Triage ToolWinFE: The (Almost) Perfect Triage Tool
WinFE: The (Almost) Perfect Triage ToolBrent Muir
 
Open Source Virtualization Hacks
Open Source Virtualization HacksOpen Source Virtualization Hacks
Open Source Virtualization HacksNiel Bornstein
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-adminbadamisri
 
Ubuntu and Linux Terminal Server Project
Ubuntu and Linux Terminal Server ProjectUbuntu and Linux Terminal Server Project
Ubuntu and Linux Terminal Server ProjectSameer Verma
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...Jim Birch
 
Introduction to Linux for Windows Users
Introduction to Linux for Windows UsersIntroduction to Linux for Windows Users
Introduction to Linux for Windows UsersRobert McDermott
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Ata Rehman
 
Raspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreRaspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreBenjamin Moore
 

Similaire à 2.Accessing the Pi (20)

Raspberry Pi introduction
Raspberry Pi introductionRaspberry Pi introduction
Raspberry Pi introduction
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)
 
Raspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software SetupRaspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software Setup
 
Linux
LinuxLinux
Linux
 
Practical Introduction To Linux
Practical Introduction To LinuxPractical Introduction To Linux
Practical Introduction To Linux
 
I Am Linux-Introductory Module on Linux
I Am Linux-Introductory Module on LinuxI Am Linux-Introductory Module on Linux
I Am Linux-Introductory Module on Linux
 
WinFE: The (Almost) Perfect Triage Tool
WinFE: The (Almost) Perfect Triage ToolWinFE: The (Almost) Perfect Triage Tool
WinFE: The (Almost) Perfect Triage Tool
 
Open Source Virtualization Hacks
Open Source Virtualization HacksOpen Source Virtualization Hacks
Open Source Virtualization Hacks
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
 
Linux Conf Admin
Linux Conf AdminLinux Conf Admin
Linux Conf Admin
 
Portable OS & Portable Application
Portable OS & Portable ApplicationPortable OS & Portable Application
Portable OS & Portable Application
 
Linux
Linux Linux
Linux
 
welcome to linux
welcome to linuxwelcome to linux
welcome to linux
 
Ubuntu and Linux Terminal Server Project
Ubuntu and Linux Terminal Server ProjectUbuntu and Linux Terminal Server Project
Ubuntu and Linux Terminal Server Project
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
 
Introduction to FOSS
Introduction to FOSSIntroduction to FOSS
Introduction to FOSS
 
Linux
LinuxLinux
Linux
 
Introduction to Linux for Windows Users
Introduction to Linux for Windows UsersIntroduction to Linux for Windows Users
Introduction to Linux for Windows Users
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)
 
Raspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreRaspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMoore
 

Dernier

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 

Dernier (20)

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 

2.Accessing the Pi

  • 1. Pi Maker Workshop Powered by: 2.Accessing the Pi http://www.inventrom.com/http://www.robotechlabs.com/ Mayank Joneja botmayank.wordpress.com botmayank@gmail.com
  • 2. Mayank Joneja Operating Systems  Many OSs (linux variants)  Most common one is Raspbian “wheezy”  Raspbian is a free operating system based on Debian and optimized for the Raspberry Pi hardware  Other possible OS include: Arch Linux, ARCOs, RiscOS, Bodhi Linux ports etc  Media Center operating Systems based on XBMC include Raspbmc, OpenELEC as well  Android is supported for the Raspberry Pi, however given the limited hardware specs, it works really slowly.  Source code: https://github.com/Razdroid/userland  Wiki: https://razdroid.net/  No Windows support (:P)
  • 3. Mayank Joneja Popular Variants for the Raspberry Pi http://www.makeuseof.com/tag/7-operating- systems-you-can-run-with-raspberry-pi/
  • 4. Mayank Joneja OS Structure  Hardware does the actual computing  To interact with hardware the instructions need to be translated to 1’s and 0’s (Punch cards in the good ol’ days anyone? )  The Kernel converts the High level instructions to Low level ones i.e assembly level language (eg. MV AX, BX)  Shell is used to command the kernel to do a particular task
  • 5. Mayank Joneja  The application layer is available to us in the form of the Graphical User Interface (GUI)  Sits on the top of the chain  Converts graphical inputs into shell commands  Many times the least important for developers  There is always a shell command for every GUI action but the converse is not true. Eg. Ifconfig, ping
  • 6. Mayank Joneja NOOBS-New Out of the Box Setup  NOOBS is a way to make setting up the RasPi for the first time much easier  You won’t need network access and you won’t need to download any special imaging software  Just head to the http://www,raspberrypi.org/downloads page, grab a copy of the NOOBS zip file, and unpack it onto a freshly formatted SD Card  When you boot up for the first time, you’ll see a menu prompting you to install one of the several operating systems into the free space on the card  The choice means you can boot the Pi with a regular operating system like Raspbian or with a media centre specific OS like RaspBMC https://www.youtube.com/watch?v=TyFDaMpdh2c&list =TLiwsXqzVYEWQk6pVkT9xd8eN0tq10H7ps Geek Gurl Diaries on YouTube
  • 7. Mayank Joneja SSH  Secure Shell (SSH) is a network protocol used for  Secure data communication  Remote command-line login  Remote command execution  It is done via a secure channel over an insecure network  Needs a server and a client (running SSH server and SSH client programs respectively)
  • 8. Mayank Joneja PuTTY  One of the most popular SSH clients, also the one that we use  Free and open source terminal emulator  Serial console and network file transfer application  It supports several network protocols, including SCP, SSH, Telnet and rlogin  Link to download PuTTY: http://www.chiark.greenend.org.uk/~sgtatham/putty/downl oad.html  Sessions
  • 9. Mayank Joneja Advanced IP Scanner  Install an IP Scanner  Need to know the IP for accessing the Pi via PuTTY  Enter the correct IP address of the Pi assigned to your team in PuTTY
  • 10. Mayank Joneja Login to the Pi Username: pi Password: raspberry
  • 11. Mayank Joneja Command Line Interface  Gives better access over hardware to do all the awesome things you want  Is more prominently used in Linux through Terminal, however Command Line Access is available in almost all devices through some form of a console, even smart TVs  On windows machines, one can access it by going to Start->Run->cmd
  • 12. Mayank Joneja Popular UNIX commands  sudo date or date : Displays the current date and time  startx : Launches the GUI (X server)  [ctrl+c] : breaks the script  hostname –l : Displays your IP address  free : Shows how much memory space is available  ls : Shows list of files in that directory (or folder in Windows)  cat filename : Shows content of file “filename”  rm filename : Remove or delete the file (Please don’t try this right now :D)  sudo mkdir directoryname : Create a new directory
  • 13. Mayank Joneja  cd directory name : change directory eg. cd /boot ( in UNIX, ‘.’ refers to current dir, ‘..’ refers to prev dir, therefore, to go one level up, “cd ..”  cd : parent directory  nano filename : Opens file in “nano”, a Linux command line editor that opens up inside the PuTTY window or the Terminal itself  * : wildcard, eg. ls d*  sudo apt-get update : Downloads the package lists from the repositories and “updates” them to get information on the newest version of packages and their dependencies.  sudo apt-get upgrade : Downloads the actual new versions of the packages based on the lists fetched by the previous command.
  • 14. Mayank Joneja Yeh Sudo Sudo kya hai?  sudo is an abbreviation of “super user do” and is a Linux command that allows programs to be executed as a super user (aka root user) or another user. It's basically the Linux/Mac equivalent of the runas command in Windows.  It allows you to make changes that affect the complete system and not just one user  Some programs or commands require root access, or do not work until they are preceded by “sudo”  It’s the equivalent of Run as Administrator on Windows
  • 15. Mayank Joneja Easter Eggs!  An Easter egg is an intentional inside joke, hidden message, or feature in a work such as a computer program  Here are a few that are really fun as featured in a post by Inventrom http://inventrom.wordpress.com/2014/07/11/easter-eggs-in- raspberry-pi/ 1. sudo apt-get moo 2. sudo apt-get install sl sl 3. sudo apt-get install vim vim :help 42
  • 16. Mayank Joneja 4. sudo apt-get install emacs emacs [Esc]+[x] doctor tetris life 5. sudo apt-get install cowsay cowsay –f stegosaurus “Mooah” 6. sudo apt-get install fortune fortune | cowsay fortune | cowsay –f tux 7. sudo apt-get install telnet
  • 17. Mayank Joneja File access through Samba  Back in the 1990s, Microsoft developed a protocol that allows one Windows machine to access the files and folders on another Windows machine.  The protocol, which is known as the Common Internet File System (CIFS) – but was originally called Server Message Block (SMB), has been implemented on other operating systems including Linux.  The most popular implementation is known as Samba and it allows devices like the Raspberry Pi to act as a CIFS file server. To put it another way, it allows a Windows PC to mount a folder on a Raspberry Pi and then copy, delete, read and write files on the it.
  • 18. Mayank Joneja File access through Samba  sudo apt-get install samba samba-common-bin  sudo nano /etc/samba/smb.conf  Find the line “# security = user” and UNCOMMENT it (remove the hash)  Scroll down to the [Homes] section and change read only = yes to read only = no  [Ctrl+X] to leave the nano editor and then [Y] to confirm that the file should be saved, then press [Enter]  sudo service samba restart  sudo service samba reload  sudo smbpasswd –a pi
  • 19. Mayank Joneja  You can now connect to your Raspberry Pi from a Windows machine. Open the “Computer” window (on Windows 7 ) or “This PC” (on Windows 8) and click the “Map Network Drive” button on the toolbar (Windows 7) or click the “Map Network Drive” button under “Computer” (on Windows 8 ).  In the Map Network Drive dialog, select and unused drive letter from the “Drive:” drop- down list and enter raspberrypipi in the “Folder:” field. Check “Connect using different credentials” and click “Finish”.  Enter pi in the Username field when you are asked to enter the network credentials. Enter the password you set previously in the password field and click OK.
  • 20. Mayank Joneja  Once connected, you can access the files on the Pi like any other directory on your harddisk http://www.maketecheasier.com/ turn-raspberry-pi-into-file-server/
  • 21. Mayank Joneja Virtual Network Computing (VNC)  In computing, Virtual Network Computing (VNC) is a graphical desktop sharing system  Uses the Remote Frame Buffer protocol (RFB) to remotely control another computer  Transmits the keyboard and mouse events from one computer to another relaying the graphical screen updates back in the other direction over a network
  • 22. Mayank Joneja TightVNC  Tight VNC is a free remote control software package  sudo apt-get install tightvncserver  tightvncserver (configure password)  vncserver :1 –geometry 1024x768 – depth 24 (Starts a session on VNC display zero (:1) with full HD resolution
  • 23. Mayank Joneja Accessing the VNC Server  On Windows:  Run VNC Viewer  Enter IP Address:session eg. 192.168.1.4:1  Over Android  Download Juice SSH ( similar to PuTTY) for command line access  Download VNC Viewer (by RealVNC Limited) or some similar app  Over iOS  Download VNC Client app  For Chrome  VNC Viewer for Google Chrome extension by RealVNC
  • 24. Mayank Joneja OMXPlayer  OMXPlayer is a commandline OMX player to play videos and audio for the Raspberry PI. It was developed as a testbed for the XBMC Raspberry PI implementation and is quite handy to use standalone.  http://omxplayer.sconde.net/  sudo apt-get update  sudo apt-get -y install omxplayer  To play a video: omxplayer myvideo.mp4  omxplayer –o hdmi myvideo.mp4 to force the audio over the HDMI interface
  • 26. Mayank Joneja Troubleshoot: No sound over HDMI  cd /boot  sudo nano config.txt  hdmi_drive=2 should be uncommented for the sound to run through the HDMI
  • 27. Mayank Joneja RasPi Dynamic Bike Headlight https://www.youtube.com/watch?v=Nfk1-XMASrk