Odroid-HC2에 Ubuntu-20.04 설치하기



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




1. Odroid-HC2에 Ubuntu-20.04 설치


1) 하드커널의 Ubuntu-20.04 이미지 다운로드
2) balenaEtcher로 Micro SD에 Ubuntu-20.04 설치
3) Micro SD 장착
4) Odroid-HC2 전원 투입
5) Search IP with Angry IP Scanner on Odroid-HC2

2. Odroid-HC2에 Ubuntu-20.04 설치 후 초기 설정


1) 암호 변경
$ passwd
$ sudo -i
# passwd
2) 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'

신규 IP로 접속

$ sudo cp /etc/NetworkManager/system-connections/main.nmconnection  /etc/NetworkManager/system-connections/main.nmconnection.orig
$ sudo nano /etc/NetworkManager/system-connections/main.nmconnection
DNS 설정 추가
dns=192.168.101.100;8.8.8.8;
dns-search=test.com
3) hostname & domainname 변경
$ sudo hostname
$ sudo hostname test
$ sudo hostname
$ sudo cp /etc/hostname /etc/hostname.orig
$ sudo nano /etc/hostname
설정 변경
odroid
==>
test
$ sudo cp /etc/hosts /etc/hosts.orig
$ sudo nano /etc/hosts
설정 변경
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) 프로그램 업그레이드
$ sudo apt update ; sudo apt dist-upgrade -y ; sudo apt autoremove -y
5) Install Bash autocompletion
$ sudo apt install bash-completion -y
6) 신규 계정 추가
$ sudo adduser test
$ sudo cp /etc/group /etc/group.orig
$ sudo nano /etc/group
설정 변경
odroid
==>
odroid,test
7) 추가 프로그램 설치
$ sudo apt install mc byobu vlc smplayer xrdp remmina
8) 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
설정 추가
nameserver 192.168.101.100
nameserver 164.124.101.2
$ sudo cat /etc/resolv.conf