Support Ubuntu server

Can I run Ubuntu Server on Rock Pi4 4GB model B.

Thank you

Regards

Yes, we will release Ubuntu server/minimal 18.4 soon.

Hi, Moja

Ubuntu Server image is released!

Download url:

http://dl.radxa.com/rockpi/images/ubuntu/rockpi4b-ubuntu-bionic-minimal-20181123_2237-gpt.img.gz

It’s based Ubuntu 18.04.1 Bionic. Have fun with it.

Hi Jack,

I am unable to do any apt updates or installations with this board for some reason. It is unable to connect to ports.ubuntu.com, I tried several WiFi networks.

Please suggest how I can solve this issue.

Thanks,
Rohan

Hi, Rohan

I am sorry, I just found the testing host file remains in the released image. Please just delete the line in file /etc/hosts

192.168.2.8	ports.ubuntu.com

we have a local mirror server so it works no issue here. I will update the image.

Thanks a lot, that worked!

Hi all.
What is the default login + password for Ubuntu please?
I can’t seem to find it.
Thank you.

The default username and password is:

username: rock
password: rock
1 Like

Thanks Jim.
I think I tried root + rock. I was so close, yet so far away.
Greetings

I tried installing this image into my RockPi4. It boots fine, but doesn’t seem to have the driver for the ethernet adapter.

running ifconfig shows only the lo and wlan0.

So, even if I have already connected the rockpi via LAN cable, I’m still unable to go online to update and get started.

Hi. You need to do this for ethernet :

ifconfig -a
sudo ifconfig eth0 up
sudo dhclient eth0

For wifi it’s this :
sudo nmcli dev wifi connect ESSID_NAME password ESSID_PASSWORD

If you would like to install a desktop, then use this :
sudo apt install lxde (installs only lxde desktop)
sudo apt install ubuntu-mate-core && sudo apt install ubuntu-mate-desktop (to install ubuntu mate desktop)
sudo apt install lubuntu (to install Lubuntu desktop + lxde desktop)

1 Like

I see… I’ll try this later. Thanks for the pointer!

Note to self and to others who will come across this thread in the future:

The eth0 interface will not be automatically raised on boot, even after you’ve manually raised it before.

To have it automatically brought up on boot, you’ll have to make sure that NetworkManager is managing this interface. It can be done by editing the file /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf

Add the following to the exceptions: except:type:ethernet

…so that the contents of the file will then be:

[keyfile]
unmanaged-devices=*,except:type:wifi,except:type:wwan,except:type:ethernet

And if you have a need for static ip on your device, create a network profile using nmcli:

Following is an example series of commands:

nmcli con add con-name your-network-prof-name ifname eth0 type ethernet ip4 192.168.254.118/24 gw4 192.168.254.254 ip4 192.168.254.118
nmcli con mod your-network-prof-name ipv4.dns "8.8.8.8 1.1.1.1"
nmcli -p con show your-network-prof-name

For more details, see the manpage for nmcli-examples here.

3 Likes

I tried running unminimize but I got an error creating directory in init-system-helpers-1.51-all and it stopped.

Whenever I try to install anything on this image, I get errors from dpkg about needing “structure needs cleaning”, and the installation fails. Running apt install -f, apt clean and apt autoclean do not help.

Edit: some web searches suggest that this may be a problem with my SD card or the card writer, so I will try replacing them and see how it goes… Further edit: I tried with a new SD card and a new writer, and that seems to have worked.

Ubuntu image should be using DHCP on Ethernet if available (turned on at least) and allowing SSH access.

User shouldn’t be forced to connect Rock Pi to HDMI monitor and own a keyboard.

A beginner will be lost, especially that there is no network configured.

4 Likes

Just to clarify. Can I download official Ubunto image and do corrections written in notes above and it will work fine?

I don’t think so, because official ubuntu simple don’t know anything about RockPi4B. So, no boot code, no kernel, no drivers, nothing.

You can just download this image from official wiki

That already have ethernet and everything else working

rock/rock does not work for me :frowning: Any ideas for working login details? Installed rockpi4b-ubuntu-bionic-minimal-20190104_2101-gpt to emmc

Erm… Are you sure you typed rock/rock? Not ROCK/ROCK, thatvyou don’t have scroll lock on on the keyboard or different language?

Hi.
When I type ’rock’ to login prompt, it is all small letters ie. no ROCK or Rock. Assuming that pwd is also small letters. Disconnecting keyboard momentarily or restarting the board does not help.

Maybe I need to take out emmc, boot from sd-card, attach emmc and mount that. After mount vi for needed files passwd,groups etc. Will this work? And is it safe to attach emmc while system runs from sd-card?

Any other ideas, like booting to single user mode via serial, is that possible with these cards?