Install Armbian Ubuntu Desktop onto Banana Pi Pro
It's been quite a while before I write down this similar blog as my previous Single Board Computer blogs. Banana Pi Pro is a SBC with AllWinner A20 ARM CPU, which is also just of card size (Cited from LeMaker Official website).
Now, we follow our previous blog Install Armbian Debian Server onto NanoPi NEO to install Armbian Ubuntu Desktop onto Banana Pi Pro.
PART A: Install Ubuntu Desktop Built By Armbian onto Banana Pi Pro
1. Download Armbian Ubuntu Desktop for Banana Pi Pro
We FIRST go visiting the website https://www.armbian.com/banana-pi-pro/ and click Armbian Bionic icon, a file named Armbian_5.59_Bananapipro_Ubuntu_bionic_next_4.14.65.7z will be automatically downloaded.
Then, we extract this .7z file by
1 | $ 7z x Armbian_5.59_Bananapipro_Ubuntu_bionic_next_4.14.65.7z -oArmbian_5.59_Bananapipro_Ubuntu_bionic_next_4.14.65 |
2. Install Armbian Ubuntu Desktop for Banana Pi Pro
After the extracted image file is prepared, it's the time to install the Armbian Ubuntu Desktop onto our TF card. We FIRST format the TF card:
1 | $ sudo umount /dev/mmcblk0p1 |
Afterwards, use dd to install the downloaded Armbian Ubuntu Desktop image.
1 | $ cd Armbian_5.59_Bananapipro_Ubuntu_bionic_next_4.14.65/ |
PART B: Boot Into Armbian, Network Configuration, Locale Configuration and Armbian Upgrading
NOTE: Whenever you met some
unsolvable issue after you boot into Armbian, please use the command
armbianmonitor -U
to log the issue.
1. Boot Into Armbian
We now unplug the TF card from the host and put it into the Banana Pi Pro board, Armbian Ubuntu Desktop boots successfully. The default username and password are respectively: root and 1234.
1 | Ubuntu 18.04.1 LTS bananapipro tty1 |
And, for the FIRST boot, we'll be asked to create a NEW user besides root:
1 | Creating a new user account. Press <Ctrl-C> to abort |
Then, Banana
Pi Pro now boots into text mode with account root.
1
root@bananapipro:~$
We may now re-login with the newly created account
bananapipro: 1
bananapipro@bananapipro:~$
2. Network Configuration
1). How to connect to wireless?
Please refer to Armbian
docs - How to connect to wireless?, 1
bananapipro@bananapipro:~$ nmtui-connect SSID
and then input the corresponding password. Now, you should be able to connect to the Internet with a DHCP IP address.
2). How to set fixed IP?
Please refer to Armbian docs - How to set fixed IP?, and modify the file /etc/network/interfaces as follows:
1 | bananapipro@bananapipro:~$ sudo vim /etc/network/interfaces |
Afterwards, a reboot (meanwhile, you may have to set up your own router for a fixed IP) will bring your Banana Pi Pro a fixed IP address. Here in my case: 192.168.0.82.
3. SSH Into Banana Pi Pro
We can now access Banana
Pi Pro via ssh as follows: 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20$ ssh bananapipro@192.168.0.82
The authenticity of host '192.168.0.82 (192.168.0.82)' can't be established.
ECDSA key fingerprint is SHA256:SKJ/eU/a7Rm6T43jzwvNpQfG1w2FqDPg+eieM+sGynA.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.82' (ECDSA) to the list of known hosts.
bananapipro@192.168.0.82's password:
____ ____ _ ____
| __ ) __ _ _ __ __ _ _ __ __ _ | _ \(_) | _ \ _ __ ___
| _ \ / _` | '_ \ / _` | '_ \ / _` | | |_) | | | |_) | '__/ _ \
| |_) | (_| | | | | (_| | | | | (_| | | __/| | | __/| | | (_) |
|____/ \__,_|_| |_|\__,_|_| |_|\__,_| |_| |_| |_| |_| \___/
Welcome to ARMBIAN 5.59 stable Ubuntu 18.04.1 LTS 4.14.65-sunxi
System load: 0.43 0.32 0.22 Up time: 15 min
Memory usage: 6 % of 992MB IP: 192.168.0.82
CPU temp: 46°C
Usage of /: 3% of 29G
Last login: Tue Sep 4 21:43:26 2018
And, let's have a look at current IP of Banana Pi Pro.
1 | bananapipro@bananapipro:~$ ip -c address |
4. Locale Configuration
Clearly, from the above login info, our timezone seems to be wrong.
Command dpkg-reconfigure tzdata is able to reset our
timezone. 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25bananapipro@bananapipro:~$ sudo dpkg-reconfigure tzdata
[sudo] password for bananapipro:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US.UTF-8",
LC_ALL = (unset),
LC_MEASUREMENT = "en_CA.UTF-8",
LC_PAPER = "en_CA.UTF-8",
LC_MONETARY = "en_CA.UTF-8",
LC_NAME = "en_CA.UTF-8",
LC_ADDRESS = "en_CA.UTF-8",
LC_NUMERIC = "en_CA.UTF-8",
LC_MESSAGES = "en_US.UTF-8",
LC_TELEPHONE = "en_CA.UTF-8",
LC_IDENTIFICATION = "en_CA.UTF-8",
LC_TIME = "en_CA.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Current default time zone: 'America/Vancouver'
Local time is now: Tue Sep 4 15:33:36 PDT 2018.
Universal Time is now: Tue Sep 4 22:33:36 UTC 2018.
During the above process, you'll set the following 2 pages correspondingly:
If we logout and login Banana
Pi Pro again, we'll see the timezone has been successfully reset.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19$ exit
logout
Connection to 192.168.0.82 closed.
$ ssh bananapipro@192.168.0.82
bananapipro@192.168.0.82's password:
____ ____ _ ____
| __ ) __ _ _ __ __ _ _ __ __ _ | _ \(_) | _ \ _ __ ___
| _ \ / _` | '_ \ / _` | '_ \ / _` | | |_) | | | |_) | '__/ _ \
| |_) | (_| | | | | (_| | | | | (_| | | __/| | | __/| | | (_) |
|____/ \__,_|_| |_|\__,_|_| |_|\__,_| |_| |_| |_| |_| \___/
Welcome to ARMBIAN 5.59 stable Ubuntu 18.04.1 LTS 4.14.65-sunxi
System load: 0.16 0.20 0.18 Up time: 53 min
Memory usage: 6 % of 992MB IP: 192.168.0.82
CPU temp: 46°C
Usage of /: 3% of 29G
Last login: Tue Sep 4 14:58:03 2018 from 192.168.0.60
5. Armbian Upgrading
Always these 3 commands: 1
2
3bananapipro@bananapipro:~$ sudo apt update
bananapipro@bananapipro:~$ apt list --upgradable
bananapipro@bananapipro:~$ sudo apt upgrade
6. Kernel Doublechecking
Finally, we have the system and kernel doublechecked.
1
2
3
4
5
6
7
8
9
10bananapipro@bananapipro:~$ uname -r
4.14.65-sunxi
bananapipro@bananapipro:~$ uname -a
Linux bananapipro 4.14.65-sunxi #68 SMP Tue Aug 21 19:57:06 CEST 2018 armv7l armv7l armv7l GNU/Linux
bananapipro@bananapipro:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
Appendix
We can of course follow our previous blog Install Armbian Ubuntu Desktop with the Newest Supported Mainline Linux Kernel onto Orange Pi Plus 2 to upgrade the NEWEST U-Boot and Linux Kernel for Banana Pi Pro, which is NOT going to be discussed here again.