Install Ubuntu Server on Raspberry Pi: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 116: Line 116:
* [https://cloudinit.readthedocs.io/en/latest/topics/examples.html <code>cloud-init</code> example]
* [https://cloudinit.readthedocs.io/en/latest/topics/examples.html <code>cloud-init</code> example]
* [[VirtualBox]]
* [[VirtualBox]]
|}
----
{|
| valign="top" |
* [https://ubuntu.com/core Ubuntu Core]
| valign="top" |


|}
|}

Revision as of 07:48, 23 April 2021

Network

ls -lah /Volumes/system-boot/|grep network-config
cat <<EOF > /Volumes/system-boot/network-config
version: 2
renderer: networkd
wifis:
  wlan0:
  dhcp4: true
  dhcp6: 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

Upgrade

apt update
apt list --installed
apt upgrade
apt install net-tools
apt install remmina remmina-plugin-vnc

RDP Server

apt install ubuntu-desktop
apt install xrdp
echo gnome-session > ~/.xsession
chmod +x ~/.xsession
sudo reboot
systemctl enable xrdp
systemctl status xrdp
systemctl restart xrdp

SSH Server

apt install ssh

Lightweight

apt install synaptic
apt remove --purge libreoffice*
apt autoremove
apt clean
journalctl --disk-usage
journalctl --vacuum-time=1d
uname -r
dpkg -l linux-image-* linux-headers-*
apt remove linux-*-unsigned-5.8.0-1019-raspi
apt remove linux-*-5.8.0-1006-raspi
apt remove linux-*-3.0
apt install debian-goodies
dpigs -H
apt remove --purge debian-goodies
apt remove --purge synaptic
apt remove thunderbird
apt autoremove
apt clean

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
usermod -aG video <username>
vcgencmd measure_temp

References