Install Ubuntu Server on Raspberry Pi: Difference between revisions
Jump to navigation
Jump to search
(35 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
ls -lah /Volumes/system-boot/|grep network-config | ls -lah /Volumes/system-boot/|grep network-config | ||
cat <<EOF > /Volumes/system-boot/network-config | cat <<EOF > /Volumes/system-boot/network-config | ||
version: 2 | |||
renderer: networkd | |||
ethernets: | |||
eth0: | |||
dhcp4: true | |||
optional: true | |||
wifis: | wifis: | ||
wlan0: | wlan0: | ||
Line 25: | Line 31: | ||
EOF | EOF | ||
</source> | </source> | ||
==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== | ==Knowledge== | ||
Line 37: | Line 90: | ||
arp -a | findstr dc-a6-32 | arp -a | findstr dc-a6-32 | ||
</source> | </source> | ||
usermod -aG video <username> | |||
vcgencmd measure_temp | |||
==References== | ==References== | ||
Line 54: | Line 110: | ||
| valign="top" | | | valign="top" | | ||
* [https://github.com/DavidUnboxed/Ubuntu-20.04-WiFi-RaspberyPi4B Headless Install using <code>network-config</code> and <code>user-data</code>] | * [https://github.com/DavidUnboxed/Ubuntu-20.04-WiFi-RaspberyPi4B Headless Install using <code>network-config</code> and <code>user-data</code>] | ||
* [https://askubuntu.com/questions/2793/ Remove old kernel versions to clean up the boot menu] | |||
* [https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-20-04 Install and Configure VNC on Ubuntu 20.04] | |||
* [https://raspberrypi.stackexchange.com/questions/111722/ Ubuntu Server 20.04 can't connect to WiFi] | |||
* [https://stackoverflow.com/questions/59379842/ Ubuntu XRDP Encounter a Black Screen] | |||
* [https://uk.images.linuxcontainers.org/ Image server for LXC and LXD] | |||
* [https://ubuntu.com/server/docs/network-configuration Ubuntu Network Configuration] | * [https://ubuntu.com/server/docs/network-configuration Ubuntu Network Configuration] | ||
* [https://ubuntu.com/tutorials/access-remote-desktop Remmina a remote desktop] | |||
* [https://cloudinit.readthedocs.io/en/latest/topics/examples.html <code>cloud-init</code> example] | |||
* [[VirtualBox]] | |||
|} | |||
---- | |||
{| | |||
| valign="top" | | |||
* [https://roboticsbackend.com/install-ubuntu-on-raspberry-pi-without-monitor/ Install Ubuntu 20.04 on Raspberry Pi 4 (without monitor)] | |||
* [https://ubuntu.com/download/raspberry-pi-core Install Ubuntu Core on a Raspberry Pi] | |||
* [https://ubuntu.com/core/docs/uc20/install Installing Ubuntu Core 20] | |||
* [https://ubuntustudio.org/ubuntu-studio-installer Ubuntu Studio Installer] | |||
* [https://cloud-images.ubuntu.com/ Ubuntu Cloud Images] | |||
* [https://ubuntu.com/download/flavours Ubuntu Flavours] | |||
* [https://cdimage.ubuntu.com/ubuntu-core/20/stable/current/ Ubuntu Core 20] | |||
* [https://ubuntu.com/core Ubuntu Core] | |||
| valign="top" | | |||
* [https://infolinux.com/2019/02/19/install-unijoy-in-linux/ Install Unijoy on Linux] | |||
|} | |} |
Latest revision as of 08:30, 9 May 2022
Network
ls -lah /Volumes/system-boot/|grep network-config
cat <<EOF > /Volumes/system-boot/network-config
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: true
optional: true
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
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