0% found this document useful (0 votes)
4 views3 pages

Raspberry Pi

The document provides a comprehensive guide on using Raspberry Pi, covering essential commands such as 'sudo', connecting to the internet, and managing system settings. It includes instructions for both command line and graphical user interface configurations, as well as basic operations like updating the OS, creating and deleting folders, and checking system information. Additionally, it introduces GPIO for hardware interfacing, making it a useful resource for beginners and intermediate users alike.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

Raspberry Pi

The document provides a comprehensive guide on using Raspberry Pi, covering essential commands such as 'sudo', connecting to the internet, and managing system settings. It includes instructions for both command line and graphical user interface configurations, as well as basic operations like updating the OS, creating and deleting folders, and checking system information. Additionally, it introduces GPIO for hardware interfacing, making it a useful resource for beginners and intermediate users alike.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

RASPBERRY PI author: Giang Truong

I. Sudo & Command


1. 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.
2. How to connect Raspberry Pi to internet ?
pi@raspberrypi:~ $ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="byGT " // Tên WiFi
psk="abcxyzhehe" // Mật khẩu WiFi
}
→ Then click Ctrl + X → Then click Y it will be saved !

3. Configure Raspberry Pi with the help terminal ?


sudo raspi-config
→ Then Enter

4. After the setting configuration ?


 Before starting working first you have to update or upgrade your Raspberry Pi OS by this
command first update then upgrade.
 first command: sudo apt-get update.
 second command: sudo apt-get upgrade (using after update).
→ After some second it will ask you do you want continue [Y/N] → Type Y → Then Enter

5. Restart your Raspberry Pi ?


pi@raspberrypi:~ $ sudo reboot

6. Shutdown your Raspberry Pi ?


pi@raspberrypi:~ $ sudo poweroff
pi@raspberrypi:~ $ sudo shutdown -h now

7. List directory ? pi@raspberrypi:~ $ ls


8. View Background Task ?
pi@raspberrypi:~ $ htop
 How to stop view background task ? type Q
9. Find the IP adress of Raspberry Pi ?
pi@raspberrypi:~ $ hostname -I

10. Download a file ?


pi@raspberrypi:~ $ wget URL

11.Check Raspberry OS Version


pi@raspberrypi:~ $ cat /proc/version

12. Check current directory ?


pi@raspberrypi:~ $ pwd

13. Create folder ?


pi@raspberrypi:~ $ mkdir folder_name

14. Delete folder ?


 There are two ways.
pi@raspberrypi:~ $ rm folder_name
pi@raspberrypi:~ $ rmdir folder_name

15. 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 cat
command.
 This command works like charm on Raspberry Pi.
16. 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.
II. Configure with GUI (Graphical User Interface)
Click the Raspberry Pi icon.
You can control most of your Raspberry Pi’s
setting, such as password, through the
Raspberry Pi Configuration application found
in the Perferences on the menu.

1. System
In this tab you can change basic system setting of your Raspberry Pi.
 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 Destop of CLI
(command line interface) when your
Raspberry Pi start.
 Auto Login: enabling this option will
make the Raspberry Pi automatically log
in whenever it start.
 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.

III. Getting Started


1. GPIO

You might also like