Ubuntu Server ROM [EMMC INSTALLATION]


#1

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!


Plex Media Server how to install
#2

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?


#3

It’s this topic.


#4

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.


#5

It’s just by accident :stuck_out_tongue_closed_eyes:

Will done that asap.


[How to] Debian Stretch + Linux 4.9 from scratch (w/download, EMMC only)
#6

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


#7

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


#8

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?


#9

Did you mean repo for apt-get?

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


#10

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


#11

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.


#12

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.


#13

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?


#14

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:


#15

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:


#16

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!


#17

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


#18

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


#19

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


#20

What’s the resolutions of your NexDock?