Install Ubuntu Server on Raspberry Pi: Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
==Network== | ==Network== | ||
<source lang="bash"> | <source lang="bash"> | ||
ls -lah | ls -lah /Volumes/system-boot/|grep network-config | ||
cat <<EOF > /Volumes/system-boot/network-config | cat <<EOF > /Volumes/system-boot/network-config | ||
wifis: | wifis: | ||
Line 10: | Line 10: | ||
"ChorkeOrg_2.4GHz": | "ChorkeOrg_2.4GHz": | ||
password: "medisys@bd/0A" | password: "medisys@bd/0A" | ||
EOF | |||
</source> | |||
<source lang="bash"> | |||
ls -lah /Volumes/system-boot/|grep user-data | |||
cat <<EOF > /Volumes/system-boot/user-data | |||
chpasswd: | |||
expire: true | |||
list: | |||
- ubuntu:ubuntu | |||
ssh_pwauth: true | |||
power_state: | |||
mode: reboot | |||
EOF | EOF | ||
</source> | </source> |
Revision as of 21:42, 19 March 2021
Network
ls -lah /Volumes/system-boot/|grep network-config
cat <<EOF > /Volumes/system-boot/network-config
wifis:
wlan0:
dhcp4: true
optional: true
access-points:
"ChorkeOrg_2.4GHz":
password: "medisys@bd/0A"
EOF
ls -lah /Volumes/system-boot/|grep user-data
cat <<EOF > /Volumes/system-boot/user-data
chpasswd:
expire: true
list:
- ubuntu:ubuntu
ssh_pwauth: true
power_state:
mode: reboot
EOF
Knowledge
# mac or linux os
apt install net-tools
arp -na | grep -i "b8:27:eb"
arp -na | grep -i "dc:a6:32"
# windows os
arp -a | findstr b8-27-eb
arp -a | findstr dc-a6-32