Ubuntu/Raspberry Pi: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:
     optional: true
     optional: true
     access-points:
     access-points:
       ChorkeOrg_2.4GHz:
       "ChorkeOrg_2.4GHz":
         password: "sadaqah!"
         password: "sadaqah!"
       ChorkeOrg:
       "ChorkeOrg":
         password: "sadaqah!"
         password: "sadaqah!"
EOF
EOF
Line 26: Line 26:
<source lang="bash">
<source lang="bash">
ls -lah /Volumes/system-boot/|grep 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
 
 
 
 
cat <<EOF > /Volumes/system-boot/user-data
chpasswd:
chpasswd:
   expire: true
   expire: true
   list:
   list:
   - pi:sadaqah!
   - pi:ubuntu
 
# Enable password authentication with the SSH daemon
ssh_pwauth: true
ssh_pwauth: true
power_state:
power_state:

Revision as of 01:30, 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