2020년 8월 31일 월요일

How To Install Ubuntu-20.04 on Odroid-HC2

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



2. Initial Setup



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'

Connet  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
Add next config
dns=192.168.101.210;8.8.8.8;
dns-search=ysm.net

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.210
nameserver 164.124.101.2

$ sudo cat /etc/resolv.conf

How To Install Docker on Odroid-C2 (or ARM64)

How To Install Docker on Odroid-C2 (or ARM64) Environment Device : Odroid-C2 OS : Ubuntu-20.04 1. Install Dock...