Ubuntu/Raspberry Pi: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(Created page with "{| | valagin="top"| '''Network Config:''' <source lang="bash"> ls -lah /Volumes/system-boot/|grep network-config cat <<EOF > /Volumes/system-boot/network-config version: 2 ren...")
 
No edit summary
Line 6: Line 6:
cat <<EOF > /Volumes/system-boot/network-config
cat <<EOF > /Volumes/system-boot/network-config
version: 2
version: 2
renderer: networkd
ethernets:
ethernets:
   eth0:
   eth0:
Line 13: Line 12:
wifis:
wifis:
   wlan0:
   wlan0:
  dhcp4: true
    dhcp4: true
  optional: true
    optional: true
  access-points:
    access-points:
    "ChorkeOrg_2.4GHz":
      ChorkeOrg_2.4GHz:
      password: "sadaqah!"
        password: "sadaqah!"
      ChorkeOrg:
        password: "sadaqah!"
EOF
EOF
</source>
</source>


| valagin="top"|
| valagin="top"|
'''System Config:'''
'''User Data:'''
<source lang="bash">
<source lang="bash">
ls -lah /Volumes/system-boot/|grep user-data
ls -lah /Volumes/system-boot/|grep user-data




Line 35: Line 37:
   expire: true
   expire: true
   list:
   list:
   - ubuntu:ubuntu
   - pi:sadaqah!
ssh_pwauth: true
ssh_pwauth: true
power_state:
power_state:

Revision as of 01:17, 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
chpasswd:
  expire: true
  list:
  - pi:sadaqah!
ssh_pwauth: true
power_state:
  mode: reboot
EOF