yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
RDK X3 Robot📖
01. About RDK-X3-Robot
1. Instructions
  • 1. Introduction
  • 2. FAQ
  • 3. Battery and charger use precautions
  • 4.TF card expand capacity
2. Common problem analysis
02. Assembly video
  • Part1-Install Motor
  • Part2-Install Battert Fixing Column
  • Part3-Install Motor Coupling
  • Part4-Install Mecanum wheel
  • Part5-Install Expansion Board
  • Part6-Wiring Show
  • Part7-Install Main Control Board
  • Part8-Install Car Top Plate and Antenna
  • Part9-Install OLED Screen
  • Part10-Install Depth Camera(Optional)
  • Part11-Install OLED Screen
  • Part12-Install HD Camera
  • Part13-Install Top Plate
  • Part14-Install Right Side Plate
  • Part15-Motor Wiring Show
  • Part16-lnstall Car Body
  • Part17-Install Battery
  • Part18-Install Lidar
03. Remote control tutorial
  • 1. The phone APP remote tutorial
  • 2. USB wireless controller remote tutorial
04. ROS functional tutorial
  • 1. Introduction of extension board
  • 2. Set up STM32 development environment
  • 3. Key control buzzer sound
  • 4. FreeRTOS application
  • 5. Serial communication
  • 6. SBUS model remote control
  • 7. CAN bus communication
  • 8. RGB color light strip
  • 9. Timer interrupt control PWM servo
  • 10. Control serial steering gear
  • 11. Nine-axis attitude sensor to obtain data
  • 12. Control motor forward and reverse
  • 13. The timer captures encoder data
  • 14. Theory of robot kinematics analysis
  • 15. PID control robot motion
05. Basic control tutorial
  • 1. Update the firmware of the expansion module
  • 2. Install the Python driver library
  • 3. Set the type of bottom car
  • 4. Open and close the APP program control
  • 5. Turn hotspot mode on and off
  • 6. The buzzer blows
  • 7. Control the motor forward and reverse
  • 8. Control robot movement
  • 9. OLED display
  • 10. Control fan and lamp effect
06. Development environment setup
  • 1. Virtual Machine
  • 2. Linux Basics
  • 3. Remote connection
  • 4. Multi-computer communication configuration
  • 5. Bind the device ID
  • 6. Image installation and backup
07. ROS2 Basic Course
  • 1. Introduction to ROS2
  • 2. ROS2 install Humble
  • 3. ROS2 development environment
  • 4. ROS2 workspace
  • 5. ROS2 function package
  • 6. ROS2 node
  • 7. ROS2 topic communication
  • 8. ROS2 service communication
  • 9. ROS2 action communication
  • 10. ROS2 custom interface message
  • 11. ROS2 parameter service case
  • 12. ROS2 meta-function package
  • 13. ROS2 distributed communication
  • 14. ROS2 DDS
  • 15. ROS2 time related API
  • 16. ROS2 common command tools
  • 17. ROS2 rviz2 use
  • 18. ROS2 rqt toolbox
  • 19. ROS2 Launch startup file configuration
  • 20. ROS2 recording and playback tool
  • 21. ROS2 URDF model
  • 22. ROS2 Gazebo simulation platform
  • 23. ROS2 TF2 coordinate transformation
08. Robot chassis control
  • 1. PID algorithm theory
  • 2. Robot information release
  • 3. Robot control
  • 4. Robot state estimation
  • 5. Robot calibration
  • 6. Robot trajectory tracking
  • 7. URDF model
09. Lidar courses
  • 1. Introduction and use of lidar
  • 2. Lidar obstacle avoidance
  • 3. Lidar following
  • 4. Lidar guard
  • 5. Patrol
  • 6. gmapping algorithm
  • 7. cartographer algorithm
  • 8. Navigation and obstacle avoidance
  • 9. App mapping and navigation
10. OpenCV courses
  • 1. Introduction to OpenCV
  • 2. OpenCV geometric transformation
  • 3. OpenCV image processing
  • 4. OpenCV image beautification
  • 5. Qr code creation and identification
11. MIPI camera course
  • 1. Camera driver
  • 2. Adjust the color HSV value
  • 3. Color recognition
  • 4. Color tracking
  • 5. Color follow
  • 6. Qr code command
  • 7. Face detection
  • 8. Object detection
  • 9. Visual Inspection -OpenCV
  • 10. Visual inspection - Deep learning
  • 11. Human tracking
  • 12. Gesture control
12. Depth Camera courses
  • 1. Use depth camera
  • 2. Calibration of camera internal reference
  • 3. ROS+OpenCV Foundation
  • 4. AR vision
  • 5. Color tracking
  • 6. Object tracking
13. Multi vehicle control
  • 1. Multi-vehicle synchronous control
  • 2. Multi-vehicle navigation
Remote login control
  • 1. VNC and SSH remote login
  • 2. Jupyter lab login and case code running
Download
  • RemoteCtrl_APP(iOS/Android))
  • Mapping_APP(iOS_Android)
  • Code
  • System File
  • VM_File
  • Manual
  • Software_File
  • Hardware_File
  • ROS2_Basic_VM
Download ZIP

Welcome to RDK X3 Robot repository

2. Linux Basics

2. Linux Basics

2. Linux Basics2.1 Introduction to Linux2.2. Ubuntu Overview2.3. Ubuntu Filesystem2.4. Common commands2.4.1. Add2.4.2 Delete2.4.3. Change2.4.4 Search2.4.5 Others2.5. Editor2.5.1、vim2.5.2、nano2.5.3、gedit2.6、Ubuntu software operation commands

2.1 Introduction to Linux

Linux is an open source operating system whose kernel was first released by Linus Benedikt Torvalds on October 5, 1991. It inherits Unix's network-centered design idea and is a stable multi-user network operating system.

In March 1994, Linux 1.0 was released with 170,000 lines of code and was released under a completely free and free license, followed by the official adoption of the GPL.

In January 1995, Bob Young founded RedHat (Little Red Riding Hood), with GNU and Linux as the core, integrated more than 400 open-source program modules, and made a branded Linux, RedHat Linux, called Linux distribution, sold in the market.

In June 1996, the Linux 2.0 kernel was released to support multiple processors.

  • Main features of Linux

Free and open source; Fully compliant with POSIX 1.0 standards; Multi-user, multi-task; Have a good interface; Multiple platforms are supported.

  • Linux major version

There are currently about 300 Linux distributions, almost all of which can run as server systems. Linux distributions rarely copy each other, and the main popular Linux server distributions are the following:

Red Hat Enterprise Linux (Red Hat Enterprise Linux) : This is the first Linux distribution for the commercial market. It is available in server versions and supports a wide range of processor architectures.

Debian: Debian runs extremely stable, which makes it ideal for servers.

CentOS: CentOS is an enterprise Linux distribution that is rebuilt using free source code from Red Hat Enterprise Linux. The refactoring completely removed the registered trademark and a very minor change in the Binary package.

Ubuntu: Ubuntu is a derivative of Debian that focuses on its application in this market and is common on servers, cloud computing, and even some mobile devices running Ubuntu Linux.

2.2. Ubuntu Overview

Ubuntu is a Linux operating system for desktop applications. Ubuntu is based on the Debian distribution and Gnome desktop environment, and as of 11.04, the Ubuntu distribution dropped the Gnome desktop environment in favor of Unity. Since Ubuntu 18.04 LTS, Ubuntu distributions have returned to using the GNOME3 desktop environment. On almost every Linux-related list, Debian-based Ubuntu has a place. Canonical's Ubuntu trumps all other Linux server distributions - from easy installation, excellent hardware discovery, to world-class commercial support, Ubuntu sets exacting standards that are hard to match

2.3. Ubuntu Filesystem

Unlike Windows, Ubuntu does not have the concept of a drive letter, only a root directory [/], where all files are located

 

xxxxxxxxxx
├── bin          # bin是Binary的缩写。存放系统中最常用的可执行文件(二进制)。
                 # bin is short for Binary. Store the most commonly used executable files (binary) in the system.
├── boot         # 这里存放的是linux内核和系统启动文件,包括Grub、lilo启动器程序。
                 # Here are the linux kernel and system boot files, including Grub, lilo launcher programs.
├── dev          # dev是Device(设备)的缩写。该目录存放的是Linux的外部设备,如硬盘、分区、键盘、鼠标、usb等。
                 # dev is short for Device. This directory stores Linux external devices, such as hard disks, partitions, keyboards, mice, and usb devices.
├── etc          # 这个目录用来存放所有的系统管理所需要的配置文件和子目录,如passwd、hostname等。
                 # This directory is used to store all the configuration files and subdirectories required by the system administration, such as passwd, hostname, etc.
├── home         # 用户的主目录,在Linux中,每个用户都有一个自己的目录,一般该目录名是以用户的账号命名的。
                 # The user's home directory. In Linux, each user has its own directory, usually named after the user's account.
│   └── yahboom        # 用户   # User
│       ├── Desktop    # 桌面   # Desktop
│       ├── Documents  # 文档   # Document
│       ├── Downloads  # 下载   # Download
│       ├── Music      # 音乐   # Music
│       ├── Pictures   # 图片   # Pictures
│       ├── Public     # 共享   # Share
│       ├── Templates  # 模板   # Template
│       ├── Videos     # 视频   # Template
│       ...
│   ... 
├── lost+found   # 这个目录一般情况下是空的,当系统非法关机后,这里就存放了一些零散文件。
                 # This directory is usually empty, when the system is illegally shut down, there are some scattered files stored here.
├── lib          # 存放共享的库文件,包含许多被/bin和/sbin中程序使用的库文件。
                 # Store shared library files, including many library files used by /bin and /sbin programs.
├── media        # ubuntu系统自动挂载的光驱、usb设备,存放临时读入的文件。
                 # The CD-ROM drive and usb device automatically mounted by the ubuntu system to store temporarily read files.
├── mnt          # 作为被挂载的文件系统得挂载点。
                 # As the mount point of the mounted file system.
├── opt          # 作为可选文件和程序的存放目录,主要被第三方开发者用来简易安装和卸载他们的软件。
                 # Serves as a directory for optional files and programs, mainly used by third-party developers to easily install and uninstall their software.
├── proc         # 这个目录是一个虚拟的目录,它是系统内存的映射,这里存放所有标志为文件的进程,比较cpuinfo存放cpu当前工作状态的数据。
                 # This directory is a virtual directory, which is a map of the system memory, where all the processes marked as files are stored, and compare cpuinfo to the current working status of the cpu.
├── root         # 该目录为系统管理员,也称作超级权限者的用户主目录。
                 # This directory is the home directory of the system administrator, also known as the super user.
├── sbin         # s就是Super User的意思,这里存放的是系统管理员使用的系统管理程序,如系统管理、目录查询等关键命令文件。
                 # s is the meaning of Super User, where the system administrator uses the system management program, such as system management, directory query and other key command files.
├── srv          # 存放系统所提供的服务数据。
                 # Store the service data provided by the system.
├── sys          # 系统设备和文件层次结构,并向用户程序提供详细的内核数据信息。
                 # System device and file hierarchy, and provide detailed kernel data information to user programs.
├── usr          # 存放与系统用户有关的文件和目录。
                 # Store files and directories related to system users.
│   ├── bin      # 用户和管理员的标准命令
                 # Standard commands for users and administrators
│   ├── games    # 存放着XteamLinux自带的小游戏
                 # Store XteamLinux's own mini games
│   ├── include  # 用来存放Linux下开发和编译应用程序所需要的头文件,c或者c++
                 # Used to store the header files needed to develop and compile applications under Linux, c or C ++
│   ├── lib      # 应用程序和程序包的连接库
                 # Connection libraries for applications and packages
│   ├── local    # 系统管理员安装的应用程序目录
                 # Application directory installed by the system administrator
│   ├── sbin     # 存放root超级用户使用的管理程序
                 # Store the hypervisor used by the root super user
│   └── src      # Linux开放的源代码 
                 # Linux open source code
│   └── share    # 存放共享数据
                 # Store shared data
│   ...
├── var          # 长度可变的文件,尤其是些记录数据,如日志文件和打印机文件。
                 # Files of variable length, especially recorded data such as log files and printer files.
│   ├── backups
│   ├── cache    # 应用程序缓存目录
                 # Application cache directory
│   ├── crash    # 系统错误信息
                 # System error message
│   ├── log      # 日志文件
                 # Log file
│   ├── mail     # 电子邮件
                 # Email
│   └── tmp      # 临时文件目录
                 # Temporary file directory
│   ...
├── tmp          # 这个目录是用来存放一些临时文件的,所有用户对此目录都有读写权限。
                 # This directory is used to store some temporary files, and all users have read and write permission to this directory.
... 

2.4. Common commands

2.4.1. Add

The new file

xxxxxxxxxx
touch test.txt

Creating a new folder

xxxxxxxxxx
mkdir test         # 创建一个文件
                   # Create a new file
mkdir -p test/src  # 创建test文件夹,并在test文件夹中创建src文件夹
                   # Create the test folder and create the src folder within the test folder

复制

xxxxxxxxxx
sudo cp test.txt test_copy.txt  # 复制一个文件
                                # Copy a file 

2.4.2 Delete

-iExecute in an interactive manner
-fDelete files forcibly and ignore files that do not exist without prompting
-rRecursively deletes the contents of the directory
xxxxxxxxxx
sudo rm test.txt    # 删除文件 | 空文件夹
                    # Delete files | empty folder
sudo rm -r test     # 删除文件夹及文件夹里的内容
                    # Delete the folder and its contents

2.4.3. Change

  • mv Move, repeat name
xxxxxxxxxx
sudo mv test test_new          # 将test文件夹修改为test_new
sudo mv test.txt test_new.txt  # 将test.txt文件修改为test_new.txt
  • chmod modifies the file permission

Permission setting

SymbolMeaning
+Add permission
-Revoke permission
=Set permission

rwx

Alphabetic permissionMeaning
rread means can read permission, for a directory, if there is no r permission, then it means that the contents of the directory cannot be viewed through ls.
wwrite indicates the writable permission. For a directory, if there is no w permission, it means that no new files can be created in the directory.
xexcute indicates executable permissions. For a directory, if there is no x permission, it means that the directory cannot be accessed through cd.
xxxxxxxxxx
sudo chmod +rwx test.txt  

Add shortcuts for all permissions

xxxxxxxxxx
sudo chmod 777 test.txt  
  • Change the password

Set the root password

xxxxxxxxxx
sudo passwd root

Set the user name and password

xxxxxxxxxx
sudo passwd 用户名

2.4.4 Search

  • Viewing the system version
xxxxxxxxxx
lsb_release -a     # 发行版本号
                   # Release version number
uname -a           # 内核版本及系统位数
                   # Kernel version and system number
cat /proc/version  # 内核版本及gcc版本
                   # Kernel version and gcc version
  • Check the hardware information
xxxxxxxxxx
curl cip.cc 或者 ifconfig    # 查看IP地址
                            # Check the IP address
cat /proc/cpuinfo or lscpu  # cpu信息
                            # cpu information
sudo dmidecode -t memory    # 内存信息
                            # Memory information
df -h                       # 查看所有挂载的文件系统空间情况
                            # View all mounted file system space
which python3               # 查看命令位置
                            # View command location
v4l2-ctl --list-formats-ext # 查看相机设备参数
                            # View camera device parameters
nproc                       # 查看内核数
                            # Check the number of cores
  • 查看文件信息
xxxxxxxxxx
la             # 显示指定目录下所有子目录与文件,包括隐藏文件
               # Displays all subdirectories and files in the specified directory, including hidden files
ll             # 以列表方式显示文件的详细信息  
               # Displays file details in a list
ls -h          # 配合以人性化的方式显示文件大小
               # Cooperate to display file size in a user-friendly way
cat test.txt   # 查看文件内容
               # View file contents
tree           # 查看文件目录(需要安装tree)
               # View the file directory (requires tree installation)

tree安装命令

xxxxxxxxxx
sudo apt install tree
  • Find file
xxxxxxxxxx
find ./ -name test.sh   # 查找当前目录下所有名为test.sh的文件or目录
                        # Find all files or directories named test.sh in the current directory
find ./ -name '*.sh'    # 查找当前目录下所有后缀为.sh的文件or目录
                        # Find all files or directories with the suffix.sh in the current directory
find ./ -name "[A-Z]*"  # 查找当前目录下所有以大写字母开头的文件or目录
                        # Find all files or directories in the current directory that start with a capital letter

2.4.5 Others

  • tar command

tar Format: tar [parameter] Package file name file

xxxxxxxxxx
-c  # 生成档案文件,创建打包文件
    # Generate archive file, create package file
-v  # 列出归档解档的详细过程,显示进度
    # Lists the detailed process of archive decompression, showing the progress
-f  # 指定档案文件名称,f后面一定是.tar文件,所以必须放选项最后
    # Specifies the name of the file, f must be followed by the.tar file, so you must put the option last
-t  # 列出档案中包含的文件
    # Lists the files contained in the file
-x  # 解开档案文件
    # Unpack the archive file

Pack

xxxxxxxxxx
tar -cvf xxx.tar *                # 当前目录所有文件
                                  # All files in the current directory
tar -cvf xxx.tar *.txt            # 以.txt结尾的文件 
                                  # Files ending in.txt
tar -cvf xxx.tar my-file my-dir   # 打包指定目录或文件
                                  # Package the specified directory or file

Unpack

xxxxxxxxxx
tar -xvf xxx.tar             # 解包到当前目录
                             # Unpack to current directory
tar -xvf xxx.tar -C my-dir   # 解包到指定目录(需要先创建my-dir目录)
                             # Unpack to specified directory (need to create my-dir directory first)
  • zip and unzip commands

zip file: zip [-r] target file (without extension) source file

xxxxxxxxxx
zip bak *       # 当前目录所有文件,也可以指定文件
                # All files in the current directory, you can also specify files
zip -r bak *    # 当前目录所有文件&目录递归
                # All files in current directory & directories recursively

Unzip file: unzip -d unzip the directory file to compress the file

xxxxxxxxxx
unzip -d ./target_dir bak.zip  # 解压到指定目录
                               # Unzip to the specified directory
unzip bak.zip                  # 解压到当前目录
                               # Unzip to the current directory
  • ln commands

Soft link: The soft link does not occupy disk space and becomes invalid when the source file is deleted. Commonly used, you can create files or folders

xxxxxxxxxx
ln -s 源文件 链接文件
      #source file link file

Hard link: Hard links can only link common files, not directories. Even if the source file is deleted, the linked file still exists

xxxxxxxxxx
ln 源文件 链接文件
   #source file link file
  • scp remote copy
xxxxxxxxxx
scp jetson@192.168.16.66:/home/jetson/xxx.tar.gz /home/yahboom/ # 从远程复制文件到本地
               # Copy files from remote to local
scp /home/yahboom/xxx.png jetson@192.168.16.66:/home/jetson/    # 从本地复制文件到远程
                                      # Copy files from local to remote
scp -r jetson@192.168.16.66:/home/jetson/test /home/yahboom/    # 从远程复制目录到本地 -r
                  # From the remote replication directory to the local -r
scp -r /home/yahboom/test jetson@192.168.16.66:/home/jetson/    # 从本地复制目录到远程 -r
                                      # Copy directory from local to remote -r
  • wget file download

Search a random picture address in Baidu, as an example.

xxxxxxxxxx
wget "https://img0.baidu.com/it/u=3911542037,2006161295&fm=224&fmt=auto&gp=0.jpg"                 # 下载普通文件(百度链接要加双引号)
                                         # Download ordinary files (Baidu link to add double quotes)
wget -O yahboom.jpg "https://img0.baidu.com/it/u=3911542037,2006161295&fm=224&fmt=auto&gp=0.jpg"  # 以指定文件名保存文件
                          # Save the file with the specified file name
  • Other
xxxxxxxxxx
nautilus .          # 打开当前文件
                    # Open the current file
cd ~                # 切换到当前用户的主目录(/home/用户目录)
                    # Switch to the current user's home directory (/home/user directory)
cd .                # 切换到当前目录
                    # Switch to the current directory
cd -                # 可进入上次所在的目录
                    # Can go to the last directory
cd /                # 切换到系统根目录/
                    # Switch to system root /
pwd                 # 显示当前路径
                    # Display the current path
echo "HelloWorld"   # 向控制台输出HelloWorld信息
                    # Output HelloWorld message to console
which               # 查看命令位置
                    # View command location

2.5. Editor

2.5.1、vim

vim is an upgraded version of vi, and the most common difference is the ability to display some special information about system files in a variety of colors.

  • Installation command
xxxxxxxxxx
sudo apt install vim
  • Three main modes

Command mode (Edit mode) : Default mode, move cursor, cut Paste text (interface performance: file name displayed in the lower left corner or empty) INSERT mode (Input mode) : Modify the text (- Insert - is displayed in the lower left corner). In the insert mode, press ESC to return to the command mode Last line mode (extended mode) : Save, exit, etc. (Interface performance: lower-left corner display - VISUAL -) Press the ESC button twice in the last line mode to return to the last line mode

  • Mode switching

The command mode is changed to edit mode

xxxxxxxxxx
i    # 插入方式进入编辑模式
     # Insert mode Enter edit mode
a    # 追加方式进入编辑模式
     # Append mode Enter edit mode
o    # 当前行下一行开始位置开始编辑
     # Start editing at the start of the line below the current line
O    # 当前行上一行开始位置开始编辑
     # Start editing at the start of the current line

Switch the command mode to the last line mode

xxxxxxxxxx
:     # 输入冒号【:】
      # Enter colon [:]

Switch to command mode: press [esc]

To switch to command mode: press [esc]

Esc Build: Exit to the current mode

Esc Build Esc Build: Always returns to command mode

vim

  • Last line pattern
xxxxxxxxxx
w           # 保存      # Save
q           # 退出      # Exit
q!          # 强制退出   # Forced exit
x           # 保存并退出 # Save and exit
set nu      # 显示行号   # Show the line number
set         # nonu 隐藏行号                                       # nonu hides the line number
0,$d        # vim 删除文件全部内容:  
            # vim Delete the entire contents of the file:
/string     # 从光标处开始向后寻找字符串string;按n定位下一个,shfit+n定位上一个。
            # Start at the cursor and look backwards for the string string; Press n to locate the next one, and shfit+n to locate the previous one.
g/string    # 检索string。使光标停止在第一个检索到的 string 串的行首。
            # Retrieve string. Makes the cursor stop at the beginning of the first retrieved string line.
  • Command mode
xxxxxxxxxx
yy        # 复制 # Copy
p         # 粘贴 # paste
3yy       # 复制3行 # Copy 3 lines
2p        # 粘贴2遍 # twice
dd        # 剪切 # shear
3dd       # 剪切3行 # Cut 3 rows
u         # 撤销 # undo
Ctrl + r  # 反撤销 # undo
dd        # 删除当前行 # Deletes the current row
dG        # 删除当前行到文件末尾                                   # Deletes the current line to the end of the file
dH        # 删除当前行到文件开头                                   # Deletes the current line to the beginning of the file
gg        # 跳到当前文档首行                                     # Skip to the first line of the current document
G         # 跳到当前文档末行                                     # Skip to the last line of the current document
^         # 跳到当前行首                                         # Skip to the beginning of the current line
$         # 跳到当前行尾                                         # jumps to the end of the current line
h         # 左移一个字符 # Move one character left
j         # 下移一行 # Move down one line
k         # 上移一行 # Move up one line
l         # 右移一个字符 # Move one character to the right
PageDown(或Ctrl+F)  # 下翻一屏 # Scroll down one screen
PageUp(或Ctrl+B)    # 上翻一屏 # Scroll up one screen

2.5.2、nano

nano is a text editor in Unix and Unix-like systems that is a copy of Pico.

  • Install
xxxxxxxxxx
sudo apt install nano

Create/open a file

xxxxxxxxxx
nano 路径+文件名  Path + File name
eg:nano test_nano.txt

Control command

xxxxxxxxxx
Ctrl+v     # 下一页  # Next page
Ctrl+y     # 上一页  # Previous page
Ctrl+w     # 搜索单词或短语                                        # Search for a word or phrase
Ctrl+x     # 关闭当前文本,退出nano,返回shell                      # Closes the current text, exits nano, and returns to shell
Ctrl+\     # 搜索替换    # Search for replacement
Ctrl+k     # 剪切文本行  # Cut the line of text
Ctrl+u     # 粘贴文本行  # Paste lines of text
Ctrl+c     # 显示光标在文本中的位置                                # Displays the position of the cursor in the text

2.5.3、gedit

gedit is not much different from Notepad in Windows.

In the editor, we can click "Open" button to browse the list of recently opened files and open the files; Click the "Save" button to save the file currently being edited; Click on the menu bar on the right for more actions and so on. The shortcut keys are the same as in windows:

xxxxxxxxxx
Ctrl + s           保存文件Save file
Ctrl + Shift + s   另存为Save as
Ctrl + f           搜索文本内容Search text content

The gedit editor must be started only when the GEdIT editor can be displayed. The GedIT editor cannot be started remotely without a GUI, such as ssh, jupyter, and putty.

2.6、Ubuntu software operation commands

xxxxxxxxxx
sudo apt-get update                            # 更新源     # Update source
sudo apt-get install package                   # 安装包    # Install package
sudo apt-get remove package                    # 删除包    # Remove package
sudo apt-cache search package                  # 搜索软件包 # Search package
sudo apt-cache show package                    # 获取包的相关信息,如说明、大小、版本等  
      # Gets information about the package, such as description, size, version, etc
sudo apt-get install package --reinstall       # 重新安装包 # Reinstall
sudo apt-get -f install                        # 修复安装  # Repair the installation
sudo apt-get remove package --purge            # 删除包,包括配置文件等 
     # Delete the package, including configuration files, etc
sudo apt-get build-dep package                 # 安装相关的编译环境
     # Install the relevant build environment
sudo apt-get upgrade                           # 更新已安装的包
     # Updates the installed packages
sudo apt-get dist-upgrade                      # 升级系统  # Upgrade the system
sudo apt-cache depends package                 # 了解使用该包依赖那些包
     # Know which packages depend on using the package
sudo apt-cache rdepends package                # 查看该包被哪些包依赖
     # Shows which packages depend on the package
sudo apt-get source package                    # 下载该包的源代码    
     # Download the source code for the package
sudo apt-get clean && sudo apt-get autoclean   # 清理无用的包
     # Clean up useless packages
sudo apt-get check                             # 检查是否有损坏的依赖
     # Check for broken dependencies

 

Virtual Machine
Remote connection

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文