How to Install Armbian on Orangi Pi-R1



  Environment
    Device : Orange Pi-R1
    OS : Armbian(Ubuntu Focal:20.04)
    HostName : net-sw
    Ethernet Interfaces
      Main : enxc0742bfff848 :  192.168.101.5/24 (gw 192.168.101.1)
      Sub : eth0 :  192.168.1.5/24




※ Odroid-C1 is not recommended
 no HDMI output (serial console only)
 no USB hotplugging, power the board with USB device is needed
 eMMC not supported
 picky on SD card brand (known to work well)
※ Odroid-C2 is not recommended
 It has USB troubles
 It can't Reset

1. Install Armbian(Ubuntu Focal:20.04) on Orange Pi R1


1) Download Armbian(Ubuntu Focal:20.04) Image from Armbian Website
2) Install Armbian(Ubuntu Focal:20.04) with balenaEtcher on Micro SD
3) Install Micro SD On Orange Pi R1
4) Power on Orange Pi R1
5) Search IP with Angry IP Scanner on Orange Pi R1

2. Setup Armbian(Ubuntu Focal:20.04) on Orange Pi R1


1) Setup Initial Account

default password of Armbian
userid : root
password : 1234

Change password of root
New root password: ********
Repeat password: ********
Create New Account
Creating a new user account. Press  to abort

Please provide a username (eg. your forename) : test
Create password:  **********
Repeat password:  **********

Please provide your real name (eg. John Doe) : test
Dear test, your account test has been created and is sudo enabled.
Please use this account for your daily work from now on.

2) Change Network IP
Setup Main Ethernet Interface
$ sudo nmcli con show
$ sudo nmcli con add con-name "Main" ifname  enxc0742bfff848 type ethernet  ip4 192.168.101.5/24 gw4 192.168.101.1
$ sudo nmcli con modify Main ipv4.dns 192.168.101.210,164.124.101.2
$ sudo nmcli con modify Main ipv4.dns-search ysm.net
$ sudo nmcli con modify Main ipv4.method manual
Setup Sub Ethernet Interface
$ sudo nmcli con add con-name "Sub" ifname  eth0 type ethernet  ip4 192.168.1.5/24
$ sudo nmcli con show
Remove Ethernet Interface Old IP
$ sudo nmcli con delete "Wired connection 2"
$ sudo nmcli con delete "Wired connection 1"
Connect to Main Interfacs New IP (192.168.101.5)

3) Change hostname & domainname
Change Hostname
$ sudo hostname
$ sudo cp /etc/hostname /etc/hostname.orig
$ sudo nano /etc/hostname
Change Configuration
orangepi-r1
==>
new-sw
Change Hosts File
$ sudo cp /etc/hosts /etc/hosts.orig
$ sudo nano /etc/hosts
Change Configuration
127.0.0.1   localhost orangepi-r1
::1         localhost orangepi-r1 ip6-localhost ip6-loopback
==>
127.0.0.1   localhost net-sw net-sw.test.com
::1         localhost net-sw net-sw.tes.com ip6-localhost ip6-loopback
Reset System
$ sudo shutdown -r now

4) Upgrade all package
$ sudo apt update ; sudo apt dist-upgrade -y ; sudo apt autoremove -y
$ sudo shutdown -r now

5) Setup IP Forwarding
$ sudo cp /etc/sysctl.conf /etc/sysctl.conf.orig
$ sudo nano /etc/sysctl.conf
Change Configuration
#net.ipv4.ip_forward=1
==>
net.ipv4.ip_forward=1
$ sudo sysctl -p /etc/sysctl.conf
$ sudo shutdown -r now