Ubuntu/Raspberry Pi: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 27: | Line 27: | ||
ls -lah /Volumes/system-boot/|grep user-data | ls -lah /Volumes/system-boot/|grep user-data | ||
cat <<EOF > /Volumes/system-boot/user-data | cat <<EOF > /Volumes/system-boot/user-data | ||
# | #cloud-config | ||
system_info: | |||
default_user: | |||
name: pi | |||
chpasswd: | chpasswd: | ||
expire: true | expire: true | ||
list: | list: | ||
- pi:ubuntu | - pi:ubuntu | ||
ssh_pwauth: true | ssh_pwauth: true | ||
runcmd: | |||
- [ df, -h, / ] | |||
- [ sh, -xc, "echo $(date) ': hello academian!'" ] | |||
power_state: | power_state: | ||
mode: reboot | mode: reboot |
Revision as of 10:02, 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
#cloud-config
system_info:
default_user:
name: pi
chpasswd:
expire: true
list:
- pi:ubuntu
ssh_pwauth: true
runcmd:
- [ df, -h, / ]
- [ sh, -xc, "echo $(date) ': hello academian!'" ]
power_state:
mode: reboot
EOF
|
| |
ls -lah /Volumes/system-boot/{.fseventsd,.Spotlight-V100}
rm -rf /Volumes/system-boot/{.fseventsd,.Spotlight-V100}
|