Ubuntu Server ROM [EMMC INSTALLATION]

Here release the first Ubuntu Server ROM.

Check Firmware Page to download the ROM.

ROM Infos:

  • ROM version: Vim_Ubuntu-server-16.04_V170120.7z
  • The ROM is for eMMC installation
  • Account info:
    • User: root
    • Password: khadas
    • You can create your new admin user to suit your taste after booting

Upgrade guidance:

Change Log

  • Linux kernel built ID: 384f7e2
  • U-Boot built ID: cd8b553
  • Building log

Resize the file system partition

root@Khadas:~# resize2fs /dev/rootfs

Add user

root@Khadas:~# adduser khadas

And add ‘admin’ and ‘sudo’ permission:

root@Khadas:~# usermod -aG sudo,adm khadas

Turn off LED

root@Khadas:~# echo none > /sys/class/leds/red/trigger

Setup network

Plug in the LAN cable and run:

root@Khadas:~# echo "auto eth0" >> /etc/network/interfaces
root@Khadas:~# echo "iface eth0 inet dhcp" >> /etc/network/interfaces
root@Khadas:~# /etc/init.d/networking restart
Restarting networking (via systemctl): networking.service.
root@Khadas:~# ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:15:18:01:81:31  
          inet addr:192.168.1.109  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::215:18ff:fe01:8131/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1778 (1.7 KB)  TX bytes:1996 (1.9 KB)
          Interrupt:40 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:4096  Metric:1
          RX packets:2720 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2720 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:201280 (201.2 KB)  TX bytes:201280 (201.2 KB)

root@Khadas:~# 

You might want to install ssh:

root@Khadas:~# apt-get install ssh

Install Mate desktop

Backup the original sources.list first[Optional]:

root@Khadas:~# cp /etc/apt/sources.list /etc/apt/sources.list.back

Add ‘universe’ and ‘multiverse’ repositories:

root@Khadas:~# <editor> /etc/apt/sources.list
root@Khadas:~# cat /etc/apt/sources.list 
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ports.ubuntu.com/ubuntu-ports/ xenial main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial main restricted universe multiverse

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted universe multiverse

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
# deb http://ports.ubuntu.com/ubuntu-ports/ xenial universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial universe
# deb http://ports.ubuntu.com/ubuntu-ports/ xenial-updates universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-updates universe

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ xenial-backports main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-backports main restricted universe multiverse

deb http://ports.ubuntu.com/ubuntu-ports/ xenial-security main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-security main restricted universe multiverse
# deb http://ports.ubuntu.com/ubuntu-ports/ xenial-security universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-security universe
# deb http://ports.ubuntu.com/ubuntu-ports/ xenial-security multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-security multiverse

deb http://ports.ubuntu.com/ubuntu-ports/ xenial-proposed main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-proposed main restricted universe multiverse
root@Khadas:~# 

Install mate desktop:

root@Khadas:~# apt-get update
root@Khadas:~# apt-get upgrade
root@Khadas:~# apt-get install mate-desktop-environment ubuntu-mate-core
root@Khadas:~# reboot

Hardware packages

TBD

See also

Enjoy!

1 Like

I can see another Ubuntu version on firmware page, non server, is that official Ubuntu Mate desktop?

This is not balbes 150 image, i can safely flash it on eMMC?

It’s this topic.

I have just seen that there are 2 different dates for Ubuntu, server is 20.01, desktop is 02.01., was hoping that it will be released, guess i am gonna have to wait for official desktop.

It’s just by accident :stuck_out_tongue_closed_eyes:

Will done that asap.

What are the main differences between desktop and server, i know server lacks gui, but you can add gui manually, as described above.

Server ROM for some one who doesn’t want GUI and run another app like docker for web server.

1 Like

But when you install gui, it basically becomes desktop, you can use everything just like in desktop version, server and desktop use the same repos?

Did you mean repo for apt-get?

Yes, but you can also edit sources.list manually.

Yes, apt-get and system updates, everything is updated from same repos, when i install Mate DE, i have full desktop Os?

Mate repo is not included in the default sources.list, but, you can add ‘universe’ and ‘multiverse’ repositories to include Mate repo. also download from Ubuntu official server.

And basically, desktop environments is just some part of OS, for example, hardware drivers/packages like WIFI and GPU should also port into VIM for better experience. About this, we will write articles and release at Khadas Docs then.

Many thanks for all the work and clear instructions.
Using this time a windows machine, it worked flawlessly this time for me (as opposed to burning a bootable SD earlier), I’m at the stage where it rebooted (with smallish screen output at first but no big deal) and then can log in as root. Yeah !
I will update with my other findings if it can entice to take the plunge those that may be hesitating, or if things don’t go as planned.

When I try to add repository, ( /etc/apt/sources.list), i have this : “-bash: editor: No such a file or directory”.

Did I miss something?

It works using vi, the ubiquitous text editor.
I mean : type in at the prompt :
vi /etc/apt/sources.list
And then :
Type i (single letter) to get in insert mode
Edit adding universe multiverse where needed
And when you’re through, type ESC to exit insert mode and then type :wq to save and exit (you do have to type the column)

PS : emacs rules :joy:

Thanks it could work, but culd you tell me what I have to write there? Before I save it? I am new in linux, so I just following the step by step instructions and learning… :smiley:

It’s quite common ways to edit files in linux, you can Google for it.

And the Ubuntu-Server ROM built in editors as following:

  • vi
  • vim

Also you can use cat and echo commands to edit the files.

Good luck!

Just installed Ubuntu Server and things seem to be stable.
Nonetheless it does not recognize my HDMI monitor (in fact a NexDock) and the resolution is much higher that the one supported by the NexDock.
How can one change the HDMI resolution using the command line?
For information I have not yet installed any X desktop, this is all in text based terminal.
Thanks for any help available.
Regards

Follow HDMI setup section on this guidance to set as 720P.

Perfect… thanks a lot.
Will try to install the Mate Desktop now.

What’s the resolutions of your NexDock?