https://launchpad.net/ubuntu/+mirror/mirror.kku.ac.th-release
https://releases.ubuntu-mate.org/20.04/arm64/
https://forums.raspberrypi.com/viewtopic.php?t=351924
https://razbotics.wordpress.com/2018/01/23/ros-distributed-systems/
https://github.com/NonStopBle/PiAttachSerial
https://pinout.xyz/pinout/uart
https://raspberrypi.stackexchange.com/questions/104464/where-are-the-uarts-on-the-raspberry-pi-4
https://github.com/mtikkyu/iRAP_RMRCBreakout
iRAP_Robot@KMUTNB x iMAKE
You will need to download additional libraries to get started with the "iRAP_RMRCBreakout" library.
Additional Library Link for download
Arduino_LSM9DS1 https://github.com/arduino-libraries/Arduino_LSM9DS1
Arduino_LSM6DS3 https://github.com/arduino-libraries/Arduino_LSM6DS3
MadgwickAHRS https://github.com/arduino-libraries/MadgwickAHRS/tree/master
https://github.com/NonStopBle/iRAP-Minirescue-GUI
Preparing the microSD Card for Flashing:
1. Download the Raspberry Pi Imager from the Raspberry Pi website and install it on your computer:
Its is a tool for installing operating systems onto Raspberry Pi devices. It is a free, open-source application developed by the Raspberry Pi Foundation and is available for Windows, macOS, and Ubuntu.
Note: I’m using Ubuntu 20.04 for the setup
2. Insert the microSD card into your computer using a microSD card reader or a USB card reader.
3. Launch the Raspberry Pi Imager.
4. Select the “Ubuntu Server” option from the “Operating system” dropdown menu
5. Select the location of the microSD card in the “SD card” dropdown menu.
6. Click the “Write” button to begin flashing the image to the microSD card.
7. Wait for the flashing process to complete. This may take a few minutes.
8. Eject the microSD card from your computer and insert it into your Raspberry Pi.
9. Connect your Raspberry Pi to a monitor, keyboard, and mouse, and power it on.
10. Configure WiFi:
Create the 50-cloud-init.yaml file in the /etc/netplan directory on your Raspberry Pi: sudo nano /etc/netplan/50-cloud-init.yaml Add the following content to the file, replacing <YOUR_SSID> and <YOUR_PASSWORD> with your WiFi network's SSID and password:
sudo vim /etc/netplan/50-cloud-init.yaml
กดปุ่ม keyboard i แล้วกด enter เพื่อเป็นการเข้าสู่โมดเพิ่มข้อความ
wifis:
wlan0:
dhcp4: true
optional: true
access-points:
"SSID": "Asus_Arty"
password: "S0917161287"
กดปุ่ม keyboard WQ แล้วกด enter เพื่อเป็นการบันทึกและปิดโปรแกรม
11. Update the package list and upgrade the installed packages by running the following commands:
sudo apt-get update && sudo apt-get -y upgrade
เราต้องหา id process ของตัว lock file ก่อนซึ่งสังเกตุจากที่มันแสดง error ออกมา เช่น /var/lib/dpkg/lock หรือ /var/lib/dpkg/lock-frontend โดยใช้คำสั่ง
sudo lsof /var/lib/dpkg/lock
มันจะ output ออกมาประมาณนี้
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
unattende 1548 root 6uW REG 8,2 0 1181062 /var/lib/dpkg/lock
สังเกตุเลข PID จะเป็น 1548 เราก็ทำการ kill มันซะ
sudo kill -9 1548
จากนั้นก็ลบมันด้วย
sudo rm /var/lib/dpkg/lock
หรือ
sudo rm /var/lib/dpkg/lock-frontend
หรือ
sudo rm /var/lib/apt/lists/lock
โดยเราควรลบ lock file ใน cache directory ด้วย
sudo rm /var/cache/apt/archives/lock
หลังจากลบแล้วสั่งคำสั่ง
sudo dpkg --configure -a
จบ เพียงเท่านี้เราก็จะสามารถสั่ง apt-get update หรือ apt-get install ได้ละ
12. install the desktop environment with this command:
sudo apt-get install ubuntu-desktop
sudo apt-get update && sudo apt-get -y upgrade