Giter Site home page Giter Site logo

raspberry-pi's Introduction

IoT (Internet Of Things)

download

download

Raspberry Pi 4

download

download

What is Raspberry Pi

The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse.

Raspberry Pi is a series of small single-board computers developed in the United Kingdom by the Raspberry Pi Foundation in association with Broadcom. The Raspberry Pi project originally leaned towards the promotion of teaching basic computer science in schools and in developing countries.

What is a Raspberry Pi used for?

All over the world, people use the Raspberry Pi to learn programming skills, build hardware projects, do home automation, implement Kubernetes clusters and Edge computing, and even use them in industrial applications.

Difference Between Raspberry pi and Arduino:

Raspberry Pi:

  1. Linux
  2. Can't be developed seperately
  3. sd card (only class 10) minimun memory 16gb or maximum 1tb
  4. 1 GH processor
  5. 1gb, 2gb, 4gb, 8gb or 16gb RAM
  6. Display HDMI/TFT/IPS
  7. Mouse / keyboard
  8. 40 Pins (GPIO -> General Purpose Input Output)
  9. WiFi Bult-in
  10. Bluetooth 2.0/4.0
  11. PiCamera
  12. 3.5 mm AudioJack
  13. 7+ Languages Support
  14. 5volt 3amp only
  15. LAN Port
  16. Own Operating System

Arduino:

  1. No Linux
  2. custom mode
  3. no hard disk / no memory
  4. 11.05 MHz
  5. No RAM
  6. No display
  7. No mouse / keyboard
  8. no USB port
  9. 16 Pins
  10. No WiFi
  11. No Bluetooth
  12. No port
  13. no speaker
  14. 1 language (only C++)
  15. power (2 way)
  16. No LAN
  17. No Operating System

Let's Start The Journey Of Raspberry Pi:

Make prepare of Raspberry Pi

Requirments:

1.) SD Card:

download

make sure class 10 symbol is here download

Software Name:

1.) Sdcard Formater

go to this link and download it: https://sd-card-formatter.en.uptodown.com/windows download

download

download

download

download

download

download

download

download

Formatting and Flashing SD Cards

download

download

2.) Win32 Disk Imager

Go to the link and download https://sourceforge.net/projects/win32diskimager/files/latest/download?source=navbar download

Downloading will be started automatically After the installation it will look like this download

download

download

download

If it doesn't work then download this software for OS burning

go to this link and download https://www.balena.io/etcher/

3.) Balena Etcher

download

download

download

Now Insert your Memory card in Raspberry pi:

download

Connect to power cable:

pi-plug-in

Now you can see how Raspberry Pi look like:

Now lets operates Raspberry Pi:

Click Terminal:

download

Command 1:

download

What is Sudo?

superuser do or substitute user do

sudo , which is an acronym for superuser do or substitute user do, is a command that runs an elevated prompt without a need to change your identity. Depending on your settings in the /etc/sudoers file, you can issue single commands as root or as another user.

OR

sudo is a program for Unix-like computer operating systems that enables users to run programs with the security privileges of another user, by default the superuser.

Command 2:

How to Connect Raspberry Pi to internet?

pi@raspberrypi:~ $ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

download

network={ ssid="wifiName_1" psk="wifiPassword" }

network={ ssid="wifiName_2" psk="wifiPassword" }

download

Then click Ctrl+x

download

Then click Y it will be saved!
Now you can see you have successfully connected into your wifi router

download

Now Let's Configure Raspberry Pi with the help terminal

download

Then Enter

Goto to 3rd option interface Options
Then Click

download

Now can see Interface option

download

Then click

![download](https://user-images.githubusercontent.com/63813881/172047163-018ddfab-1f02-41d2-a203-c101b5b9b6ac.png)

Use Arrow button left and right
press select button then Enter

If it will ask you then select YES button then click now your SSH will be enable!

![download](https://user-images.githubusercontent.com/63813881/172047177-01d252a0-8d18-4804-b3e6-9124e814e5b4.png)

Then press OK

download

Then now enable all the thing by previous method

download

Use Arrow button left and right
select finish button then Enter

download

After the click! It's mean you have configure all interface options

Command 3:

After the setting!
Before starting working first you have to Update or Upgrade your Raspberry OS by this command
First Update then upgrade

1.) sudo apt-get update
2.) sudo apt-get upgrade

type: sudo apt-get update

download

after the update type: sudo apt-get upgrade

download

after some second it will ask you Do You Want Continue [Y/N]
type y

download

Then Enter

download

Your raspberry pi is update or upgrade successfully

Command 4 Restart Your Raspberry Pi

pi@raspberrypi:~ $ sudo reboot

Command 5 Shutdown Your Raspberry Pi

pi@raspberrypi:~ $ sudo poweroff

pi@raspberrypi:~ $ sudo shutdown -h now

Command 5 List directory

pi@raspberrypi:~ $ ls

download

Command 6 Nmap Scan the Local Network

pi@raspberrypi:~ $ sudo apt-get install nmap
then click y it will start installation

download

pi@raspberrypi:~ $ nmap -sn 192.168.1.0/24

Command 7 View Background Task

pi@raspberrypi:~ $ htop

download

Command 8 Find the IP Address of Raspberry Pi

pi@raspberrypi:~ $ hostname -I

Command 9 Download a File

pi@raspberrypi:~ $ wget URL

download

Command 10 Check Raspberry OS Version

pi@raspberrypi:~ $ cat /proc/version

Command 11 Check Current Directory

pi@raspberrypi:~ $ pwd

Command 12 Create folder

pi@raspberrypi:~ $ mkdir folder_name

Command 13 Delete Folder

pi@raspberrypi:~ $ rm folder_name

or

pi@raspberrypi:~ $ rmdir folder_name

Command 14 Check Files by Extension

pi@raspberrypi:~ $ cat *.txt

If you want to sort files based on the file extension like TXT, PDF, etc., you can use the cat command. This command works like a charm on Raspberry Pi.

Command 15 Root Permission

pi@raspberrypi:~ $ sudo su


On Raspberry Pi, if you get the “Permission denied” output, it means you don’t have the privilege to modify or access that file. In such cases, you can type sudo su and hit enter to get into the elevated permission mode. Now, you can execute the command and won’t face any errors.

Now let's Configure with GUI (Graphical User Interface)


Click the Raspberry icon

download


You can control most of your Raspberry Pi’s settings, such as the password, through the Raspberry Pi Configuration application found in Preferences on the menu.

download

System

In this tab you can change basic system settings of your Raspberry Pi.

download

  • Password — set the password of the pi user (it is a good idea to change the password from the factory default ‘raspberry’)
  • Boot — select to show the Desktop or CLI (command line interface) when your Raspberry Pi starts
  • Auto Login — enabling this option will make the Raspberry Pi automatically log in whenever it starts
  • Network at Boot — selecting this option will cause your Raspberry Pi to wait until a network connection is available before starting
  • Splash Screen — choose whether or not to show the splash (startup) screen when your Raspberry Pi boots

Interfaces

You can link devices and components to your Raspberry Pi using a lot of different types of connections. The Interfaces tab is where you turn these different connections on or off, so that your Raspberry Pi recognises that you’ve linked something to it via a particular type of connection.

download

Make Sure You desire things!

  • Camera — enable the Raspberry Pi Camera Module
  • SSH — allow remote access to your Raspberry Pi from another computer using SSH
  • VNC — allow remote access to the Raspberry Pi Desktop from another computer using VNC
  • SPI — enable the SPI GPIO pins
  • I2C — enable the I2C GPIO pins
  • Serial — enable the Serial (Rx, Tx) GPIO pins
  • 1-Wire — enable the 1-Wire GPIO pin
  • Remote GPIO — allow access to your Raspberry Pi’s GPIO pins from another computer

After the all setting please reboot Raspberry Pi

Download and Installation Putty

download

Step 2: Configuration and Installation

1. Double-click the downloaded MSI file to start the installation.

2. Click Next on the welcome screen to continue with the installation.

download

3. Click Next if you don't need to modify the installation path. Click Change... to specify another path.

download

4. Select which product features you want to install. Click Install.

download

5. Upon completing the installation, the program shows a 'Setup complete' screen. Check/uncheck the View README file option if you want to see the developer's notes. Click Finish to exit the installer.

A successful PuTTY installation window.

download

Step 3: Run Putty

Run PuTTY after the installation to make sure it functions properly. Double-click the icon on Desktop or search 'putty' in the search bar and press Enter.

download

How to run PuTTY after installation. If there were no issues during installation, the PuTTY configuration window opens:

download

The PuTTY configuration window allows you to specify how you want to connect. The configuration options allow you to set up the connection type, port, and connect to a server. Choose between SSH, Telnet, SUPDUP, raw, rlogin, serial, or bare SSH connection, and enter a server hostname or IP address.

1) Make sure that SSH is enabled on your Raspberry Pi

2) Find out the IP address of your Raspberry. I usually scan my network with Fing to find the Raspberry. In case you have access to the console you can also type the following command:

find IP by this command

pi@raspberrypi:~ $ sudo ifconfig

it will show the network adapters and the assigned ip-address.

download

3.) The Putty window opens

download

If you haven't find IP goto this link and download Advance IPscanner

https://www.advanced-ip-scanner.com/download/

Downloading will be start automatically

download

1: After opening the downloaded file, the setup file will open with “Select the Language” tab.

download

2: After selecting the language, It will prompt you to the installation page. You can either choose to install or you can run a portable version. We have chosen the installation here. Select “Install” radio button and click “Next“.

download

3: You will get the “End User License Agreement“. Read and choose “I Accept the Agreement” and click “Install“.

download

4: Installation will start.

download

5: Once installed, you can start running the application.

image

6: This is the homepage of this application. Click “Scan” to scan all the connected devices to this network.

image

7: The list will appear like this. You can right-click on any device and try controlling it with the help of Radmin or RDP.

Connect Raspberry Pi with Laptop/PC and Open Advanced IP scanner

image

Open Putty and enter the IP address

Now, Open Putty and enter the IP address and click on open.

image

Click “Open” and you’re ready to log on.

Standard user = pi --------------------->Defualt User is pi

Standard password = raspberry ----------->Defualt Password is raspberry

Please note that the password will not be visible when you type, just type and enter.

image

image

You can also view GUI of Raspberry Pi with the help of VNC Viewer

Connect from Windows client: Visit the RealVNC https://www.realvnc.com/en/connect/download/viewer/ site and download the client for your operating system and install. Once it’s done, fire up the VNC viewer and enter the Raspberry PI IP address and hit enter. You are going to see a warning message like this.

image

image

image

After the continue just enter the user or password then click connect now you can see RaspberryPi Screen

image

raspberry-pi's People

Contributors

muhammadraheelnaseem avatar muhammadmooazam avatar

Stargazers

Iqra Naz avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.