Difference between revisions of "Turtlebot3 Raspberry Pi Setup 20210113"

From wikidb
Jump to: navigation, search
(Boot Up)
(Configure the Raspberry Pi)
Line 62: Line 62:
  
 
   $ sudo nano /etc/netplan/50-cloud-init.yaml
 
   $ sudo nano /etc/netplan/50-cloud-init.yaml
 +
 +
ubuntu@ubuntu:~$ cat /etc/netplan/50-cloud-init.yaml
 +
# This file is generated from information provided by
 +
# the datasource.  Changes to it will not persist across an instance.
 +
# To disable cloud-init's network configuration capabilities, write a file
 +
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
 +
# network: {config: disabled}
 +
network:
 +
    version: 2
 +
    ethernets:
 +
        eth0:
 +
            dhcp4: true
 +
            match:
 +
                macaddress: b8:27:eb:0b:5d:ce
 +
            set-name: eth0
 +
network:
 +
  version: 2
 +
  renderer: networkd
 +
  ethernets:
 +
    eth0:
 +
      dhcp4: yes
 +
      dhcp6: yes
 +
      optional: true
 +
  wifis:
 +
    wlan0:
 +
      dhcp4: yes
 +
      dhcp6: yes
 +
      access-points:
 +
        "zdome":
 +
          password: "fishsticks"
  
 
= Notes and Logs =
 
= Notes and Logs =
  
 
* [[SBC Turtlebot3 Setup ROS 2 Dashing 202101 Note and Log]]
 
* [[SBC Turtlebot3 Setup ROS 2 Dashing 202101 Note and Log]]

Revision as of 14:44, 19 January 2021

References

Prepare micoSD Card

 $ cd TB3Install

 TB3Install$ mv ~/Downloads/ubuntu-18.04.3-preinstalled-server-arm64+raspi3.img.xz .

 TB3Install$ unxz < ubuntu-18.04.3-preinstalled-server-arm64+raspi3.img.xz > ubuntu-18.04.3-preinstalled-server-arm64+raspi3.img
  • Run the Disks application
    • To find it go to the "Show Applications" icon in the bottom left corner of the desktop.
    • Search for "Disks"
  • In the upper right corner of the Disks app window is a "hamburger" menu (3 horizontal lines).
  • Select the "Restore Disk Image" menu item
  • Do what makes sense

Useful References

 If for some reason the tar solutions don’t work (perhaps because you’re using the OS X built-ins), try this: 
   unxz < file.tar.xz > file.tar

 which is equivalent to:
   xz -dc < file.tar.xz > file.tar

 Then use tar to untar the file.

Boot Up the Raspberry Pi

  • Section 3.2.2

Configure the Raspberry Pi

  • Section 3.2.3
  • I believe this is what I did but I couldn't capture my keystrokes

Log into the Pi

  • username: ubuntu
  • passwd: ubuntu which I changed

Disable Automatic update

 $ sudo nano /etc/apt/apt.conf.d/20auto-upgrades

Change the update settings

 APT::Periodic::Update-Package-Lists "0";
 APT::Periodic::Unattended-Upgrade "0";

Configure wifi (I had trouble with the syntax and indention so it took a few tries0

 $ sudo nano /etc/netplan/50-cloud-init.yaml

ubuntu@ubuntu:~$ cat /etc/netplan/50-cloud-init.yaml

  1. This file is generated from information provided by
  2. the datasource. Changes to it will not persist across an instance.
  3. To disable cloud-init's network configuration capabilities, write a file
  4. /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
  5. network: {config: disabled}

network:

   version: 2
   ethernets:
       eth0:
           dhcp4: true
           match:
               macaddress: b8:27:eb:0b:5d:ce
           set-name: eth0

network:

 version: 2
 renderer: networkd
 ethernets:
   eth0:
     dhcp4: yes
     dhcp6: yes
     optional: true
 wifis:
   wlan0:
     dhcp4: yes
     dhcp6: yes
     access-points:
       "zdome":
         password: "fishsticks"

Notes and Logs