Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

RPi Python Programming 03: Raspberry Pi as Linux System

By Nikhil Agnihotri October 21, 2024

In the previous article, we reviewed several Raspberry Pi models and considered which are most suitable depending on the application. Most of the time, you will be using RPi as a Linux computer. Raspbian, the official operating system for Raspberry Pi, is a variant of Debian OS (a Linux Distribution). Other operating systems are available, but Linux is typically preferred.

From an electronics perspective, any computing device is a digital electronic circuit that can process and execute a set of digital instructions in a programmed order so that specific tasks are completed. The programmed order of these instructions is called an application. When an operating system runs on the computing device, the Screenshot of Raspbian OS on Raspberry Piapplications, and all of the hardware resources, are managed by it.

The operating system is, therefore, a unique program designed and developed to manage hardware resources, data, memory, and applications.

Any application “allows” the hardware to manipulate the data. For example, a word processing application allows a computer:

  • To read data input from a keyboard
  • Display typed data or data files through a graphic user interface on the screen
  • Save data files to a secondary memory device
  • Print the data using a printer or plotter.

The data can be runtime data or files stored on the secondary memory device. The data files that store the application on a secondary memory device are called programs. At runtime, the programs are called processes. However, the processes cannot directly access hardware resources. They must interact with the operating system for access to the hardware resources, primary memory, other files that are on the secondary memory, or to transfer the data from one device to another.

It is the operating system that is responsible for:

  • Managing and allocating hardware resources
  • Allocating primary and virtual memory resources
  • Manage processes
  • Maintain file system
  • Protect files and data on secondary storage.

The person using the computer is called the user. The user interacts with applications through the input/output peripherals. To manage the transfer of data from the input/output peripherals, device drivers must be installed on the operating system. These device drivers are programs that dictate data communication with a hardware component. Each hardware device connected in the computer system has a device driver that must be explicitly installed on the operating system to let it interact with the specific hardware device.

Additionally, the operating system is responsible for providing a user interface (command-line or graphical) to let the user access the files stored on the secondary or removable storage devices, and interact with the application programs. It also provides system services or utility services, such as the scheduling of processes, file handling, manipulation of text, printing, networking, etc. These services run as separate processes and are initiated when the operating system is booted. The application programs may need to access or interact with one or several of these services for specific tasks.

Linux operating system
Linux is an open-source operating system that was first developed by Linus Benedict Torvalds. The software is available as a Linux kernel for free without a license fee. This means anybody can download and modify the source code of Linux to have his or her own Linux distribution. The Linux Kernel is written in C programming language.

It is combined with:

  • System utilities (GNU utilities)
  • Shell — a special utility for a user to manage files and programs.
  • Desktop environment, which adds a graphic user interface to the Linux Kernel.
  • Default application software, written for the Linux Kernel, and forms a complete operating system.

Together, the Linux Kernel with its combined features, is a ready-to-use Linux distribution — and there are hundreds of Linux distributions. Interestingly, Linux is not limited to any platform, meaning its different distributions are available as an operating system for desktops, servers, mobile devices, mainframe computers, supercomputers, and embedded devices.

The current Linux desktop share is 1.74 to 2.18 percent. About 85 percent of mobile devices are running on Android, which is a Linux derivative. Approximately 66 percent of servers use Linux and almost all supercomputers run on custom Linux variants.

The Linux Kernel is periodically updated and made available for download. A version number identifies each new release, which is composed of three components:

1. The major number indicates a significant revision to the Linux Kernel.
2. The minor number refers to minor changes and stability of the version. If the minor number is odd, it means that it’s a development kernel. If it’s even, it’s a production kernel. Development kernels are not fully tested and can be unstable. A production kernel is a fully tested and stable release of Linux Kernel.
3. The revision number specifies minute changes to the kernel. For example, the latest stable Linux Kernel version is 5.4.1 (November 2019), in which 5 is the major number, 4 is the minor number, and 1 is revision number. This is a production kernel.

Linux is available under GNU Public License, which was developed by the Free Software Foundation (FSF), a nonprofit with a global mission to promote computer user freedom. Under GPL, any software and its source code must be freely available. If someone modifies the source code, it should also be redistributed without any license fee.

So, Linux is an Open Source Software (OSS). Under Open Source license, the software and source code must be available free of charge. This means software companies and developers are unable to generate revenue on an OSS because the software and its source code, must be distributed for free under the open-source licenses. As a result, OSS developers (and Linux developers) generate revenue by selling the hardware that runs an OSS, the closed-source software that runs on an OSS (such as the applications for Linux), or by providing related customer support.

As an operating system, Linux has a few notable features. It provides multi-threading, multi-tasking, and multi-user capability, as well as a stable, secure, and monolithic kernel. It also offers the versatility of the hardware platform, multiple file system options, open-source code, simple customization, and low operational costs.

Popular Linux distributions include Red Hat, Fedora, Slackware, Arch Linux, OpenSUSE, Mandriva Linux, Gentoo, Debian, Ubuntu, CentOS, PCLinuxOS, Puppy Linux, Solus, Elementary OS, etc. Raspbian is a Linux distribution that’s based on Debian.

Screenshot of Raspbian OS on Raspberry Pi

Example of Raspbian OS running on Raspberry Pi

Any Linux system has these building blocks:

  • Linux Kernel
  • GNU utilities
  • Shell
  • Desktop environment
  • Add-on application software

To learn more about these building blocks, check out this article: “Any Linux System at a Glance.” It’s an important read to understand the different software components that make up a Linux operating system and how they function.

In the next article, we learn how to set up a Raspberry Pi computer. Be ready to get your hands dirty from the following tutorial and onwards.

 


Filed Under: Featured Contributions
Tagged With: Raspberry Pi
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Snooping Around is All
  • mosfet driver problem in regeneration mode
  • Industrial Relay Board Design for Motorcycle Use
  • connector model question
  • ADEM III ECM — No CAN Signal & Power Supply Issue

RSS Electro-Tech-Online.com Discussions

  • Sump pit water alarm - Kicad 9
  • Pic18f25q10 osccon1 settings swordfish basic
  • Anyone jumped from Easyeda std to Easyeda pro?
  • turbo jet fan - feedback appreciated.
  • More fun with ws2812 this time XC8 and CLC

Featured – LoRa/LoRaWan Series

  • What is the LoRaWAN network and how does it work?
  • Understanding LoRa architecture: nodes, gateways, and servers
  • Revolutionizing RF: LoRa applications and advantages
  • How to build a LoRa gateway using Raspberry Pi
  • How LoRa enables long-range communication
  • How communication works between two LoRa end-node devices

Recent Articles

  • How IoT network topologies work
  • The top five AI startups to watch in 2025
  • STMicroelectronics unveils SoC based on secure MCU
  • Nexperia’s 48 V ESD diodes support higher data rates with ultra-low capacitance design
  • Taoglas releases Patriot antenna with 18 integrated elements covering 600 to 6000 MHz

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe