Ubuntu/Raspberry Pi: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 53: Line 53:
rm -rf /Volumes/system-boot/{.fseventsd,.Spotlight-V100}
rm -rf /Volumes/system-boot/{.fseventsd,.Spotlight-V100}
</source>
</source>
|}
==References==
{|
| valign="top" |
* [https://alestic.com/2014/01/ec2-change-username/ Change default <code>ubuntu</code> user via CloudInit On AWS EC2]
* [https://serverfault.com/questions/440618/ Change default <code>ubuntu</code> user via CloudInit on Pi4]
* [https://stackoverflow.com/questions/3466166/ Detect the OS Name from a Bash Script]
* [https://stackoverflow.com/questions/394230/ Detect the OS Type from a Bash Script]
* [[Fedora/Raspberry Pi]]
* [[Raspberry Pi]]
* [[Quarkus]]
* [[Podman]]
* [[Fedora]]
* [[Docker]]
| valign="top" |
* [https://gist.github.com/ricardozanini/fa65e485251913e1467837b1c5a8ed28 Gist Install GraalVM CE on Linux]
* [https://git-scm.com/download/linux Git Download for Linux and Unix]
* [https://medium.com/@john_freeman/native-javac-with-graalvm-ddcc18a53edb Native javac built with GraalVM]
* [[Convention for Workspaces]]
* [[Convention for Projects]]
* [https://stackoverflow.com/questions/31851611/ ARM64 vs. AArch64]
* [[Linux Containers]]
| valign="top" |


|}
|}

Revision as of 08:57, 14 November 2021

Network Config:

ls -lah /Volumes/system-boot/|grep network-config
cat <<EOF > /Volumes/system-boot/network-config
version: 2
ethernets:
  eth0:
    dhcp4: true
    optional: true
wifis:
  wlan0:
    dhcp4: true
    optional: true
    access-points:
      "ChorkeOrg_2.4GHz":
        password: "sadaqah!"
      "ChorkeOrg":
        password: "sadaqah!"
EOF

User Data:

ls -lah /Volumes/system-boot/|grep user-data
cat <<EOF > /Volumes/system-boot/user-data
# Some additional examples are provided in comments below the default
# configuration.

# On first boot, set the (default) pi user's password to "ubuntu" and
# expire user passwords
chpasswd:
  expire: true
  list:
  - pi:ubuntu

# Enable password authentication with the SSH daemon
ssh_pwauth: true
power_state:
  mode: reboot
EOF

ls -lah /Volumes/system-boot/{.fseventsd,.Spotlight-V100}
rm -rf /Volumes/system-boot/{.fseventsd,.Spotlight-V100}

References