How To Install Ubuntu-20.04 on Odroid-HC2



  Environment
    Device : Odroid-HC2
    OS : Ubuntu-20.04
    Host : test (192.168.101.100)




1. Install Ubuntu-20.04 on Odroid-HC2


1) Download Ubuntu-20.04 Image from Hardkernel Website
2) Install Ubuntu-20.04 with balenaEtcher on Micro SD
3) Install Micro SD On Odroid-HC2
4) Power on Odroid-HC2
5) Search IP with Angry IP Scanner on Odroid-HC2

2. Initial Setup on Odroid-HC2


1) Change default password
$ passwd
$ sudo -i
# passwd
2) Change Network IP
$ sudo nmcli con show
$ sudo nmcli con add con-name "main" ifname  eth0 type ethernet  ip4 192.168.101.100/24 gw4 192.168.101.1
$ sudo nmcli con show
$ sudo nmcli conn delete 'Wired connection 1'

Connect to New IP

$ sudo cp /etc/NetworkManager/system-connections/main.nmconnection  /etc/NetworkManager/system-connections/main.nmconnection.orig
$ sudo nano /etc/NetworkManager/system-connections/main.nmconnection
Insert Configuration
dns=192.168.101.100;8.8.8.8;
dns-search=test.com
3) Change hostname & domainname
$ sudo hostname
$ sudo hostname test
$ sudo hostname
$ sudo cp /etc/hostname /etc/hostname.orig
$ sudo nano /etc/hostname
Change Configuration
odroid
test
$ sudo cp /etc/hosts /etc/hosts.orig
$ sudo nano /etc/hosts
Change Configuration
127.0.0.1     odroid
==>
127.0.0.1     test test.test.com
::1           localhost ip6-localhost ip6-loopback
==>
::1           test test.test.com localhost ip6-localhost ip6-loopback
$ sudo shutdown -r now
4) Upgrade all package
$ sudo apt update ; sudo apt dist-upgrade -y ; sudo apt autoremove -y
5) Install Bash autocompletion
$ sudo apt install bash-completion -y
6) Generate new Account
$ sudo adduser test
$ sudo cp /etc/group /etc/group.orig
$ sudo nano /etc/group
Change Configuration
odroid
==>
odroid,test
7) Install additional utils
$ sudo apt install mc byobu vlc smplayer xrdp remmina
8) Install resolvconf
$ sudo cat /etc/resolv.conf
$ sudo apt install resolvconf
$ sudo cp /etc/resolvconf/resolv.conf.d/head /etc/resolvconf/resolv.conf.d/head.orig
$ sudo nano /etc/resolvconf/resolv.conf.d/head
Insert Configuration
nameserver 192.168.101.100
nameserver 164.124.101.2
$ sudo cat /etc/resolv.conf