helpme
Posts: 124
Joined: Thu May 16, 2013 2:20 am

For server applications, is Ubuntu server better than Raspbian on rpi 4?

Sat Jun 27, 2020 12:26 am

I was wondering whether Ubuntu server 20.04 would be a better choice than raspbian if one were running server applications on Raspberry pi 4.

Anyone tried Ubuntu server on raspberry pi 4? How was the experience? What problems did you encounter? Slow speed? Is raspbian better?

User avatar
kerry_s
Posts: 741
Joined: Thu Jan 30, 2020 7:14 pm

Re: For server applications, is Ubuntu server better than Raspbian on rpi 4?

Sat Jun 27, 2020 12:51 am

any rpi os, can do the job, it's just a matter of preference.
for ubuntu you need ethernet/lan & gui stuff kinda sucks, so best if you intend headless/ no gui.

for mine i've gone with dietpi os.

helpme
Posts: 124
Joined: Thu May 16, 2013 2:20 am

Re: For server applications, is Ubuntu server better than Raspbian on rpi 4?

Sat Jun 27, 2020 12:58 am

kerry_s wrote:
Sat Jun 27, 2020 12:51 am
any rpi os, can do the job, it's just a matter of preference.
for ubuntu you need ethernet/lan & gui stuff kinda sucks, so best if you intend headless/ no gui.

for mine i've gone with dietpi os.
Can Rpi Wifi work in Ubuntu? This is a concern.
I believe most rpi applications are headless since Rpi is essentially best suited as embedded device.

User avatar
kerry_s
Posts: 741
Joined: Thu Jan 30, 2020 7:14 pm

Re: For server applications, is Ubuntu server better than Raspbian on rpi 4?

Sat Jun 27, 2020 2:10 am

helpme wrote:
Sat Jun 27, 2020 12:58 am
kerry_s wrote:
Sat Jun 27, 2020 12:51 am
any rpi os, can do the job, it's just a matter of preference.
for ubuntu you need ethernet/lan & gui stuff kinda sucks, so best if you intend headless/ no gui.

for mine i've gone with dietpi os.
Can Rpi Wifi work in Ubuntu? This is a concern.
I believe most rpi applications are headless since Rpi is essentially best suited as embedded device.
yes it works, if you do it just right, which is not easy.

ejolson
Posts: 5202
Joined: Tue Mar 18, 2014 11:47 am

Re: For server applications, is Ubuntu server better than Raspbian on rpi 4?

Sat Jun 27, 2020 2:23 am

helpme wrote:
Sat Jun 27, 2020 12:26 am
I was wondering whether Ubuntu server 20.04 would be a better choice than raspbian if one were running server applications on Raspberry pi 4.

Anyone tried Ubuntu server on raspberry pi 4? How was the experience? What problems did you encounter? Slow speed? Is raspbian better?
I installed Focal Fossa on a Pi 3B+ last week. The installation was simple, just download the image, copy it to the card and it works. After seeing how long it took to log in because Ubuntu has to check whether updates are available in the repository each time, I remembered why I didn't like Ubuntu. Then it crashed and so I deleted it. Before I deleted it, I noticed that vcgencmd seemed missing. Does anyone know where vcgencmd is on Ubuntu server?

User avatar
kerry_s
Posts: 741
Joined: Thu Jan 30, 2020 7:14 pm

Re: For server applications, is Ubuntu server better than Raspbian on rpi 4?

Sat Jun 27, 2020 5:16 am

Does anyone know where vcgencmd is on Ubuntu server?
it's in the same place raspi-config is, on raspberry pi os. :lol:

User avatar
ranrinc
Posts: 12
Joined: Tue Feb 25, 2020 7:23 am
Location: Jakarta Indonesia
Contact: Website

Re: For server applications, is Ubuntu server better than Raspbian on rpi 4?

Tue Jun 30, 2020 11:07 am

ejolson wrote:
Sat Jun 27, 2020 2:23 am
helpme wrote:
Sat Jun 27, 2020 12:26 am
I was wondering whether Ubuntu server 20.04 would be a better choice than raspbian if one were running server applications on Raspberry pi 4.

Anyone tried Ubuntu server on raspberry pi 4? How was the experience? What problems did you encounter? Slow speed? Is raspbian better?
I installed Focal Fossa on a Pi 3B+ last week. The installation was simple, just download the image, copy it to the card and it works. After seeing how long it took to log in because Ubuntu has to check whether updates are available in the repository each time, I remembered why I didn't like Ubuntu. Then it crashed and so I deleted it. Before I deleted it, I noticed that vcgencmd seemed missing. Does anyone know where vcgencmd is on Ubuntu server?
The reason we install ubuntu because its now supported for RPI and its 64bit instead of 32bit. Furthermore it have more apps etc compare to raspiOS. However the downside is that all the raspiOS specific to RPI software will not run on ubuntu (vcgencmd) and also booting via SSD without microSD also will not work on ubuntu.

helpme
Posts: 124
Joined: Thu May 16, 2013 2:20 am

Re: For server applications, is Ubuntu server better than Raspbian on rpi 4?

Tue Jun 30, 2020 11:13 am

ranrinc wrote:
Tue Jun 30, 2020 11:07 am
ejolson wrote:
Sat Jun 27, 2020 2:23 am
helpme wrote:
Sat Jun 27, 2020 12:26 am
I was wondering whether Ubuntu server 20.04 would be a better choice than raspbian if one were running server applications on Raspberry pi 4.

Anyone tried Ubuntu server on raspberry pi 4? How was the experience? What problems did you encounter? Slow speed? Is raspbian better?
I installed Focal Fossa on a Pi 3B+ last week. The installation was simple, just download the image, copy it to the card and it works. After seeing how long it took to log in because Ubuntu has to check whether updates are available in the repository each time, I remembered why I didn't like Ubuntu. Then it crashed and so I deleted it. Before I deleted it, I noticed that vcgencmd seemed missing. Does anyone know where vcgencmd is on Ubuntu server?
The reason we install ubuntu because its now supported for RPI and its 64bit instead of 32bit. Furthermore it have more apps etc compare to raspiOS. However the downside is that all the raspiOS specific to RPI software will not run on ubuntu (vcgencmd) and also booting via SSD without microSD also will not work on ubuntu.
May I ask what do you mean by booting via SSD? Do you mean attach a SSD at USB port and Rpi 4 can boot up? I didn't know that can be done with Raspbian.


User avatar
waveform80
Posts: 359
Joined: Mon Sep 23, 2013 1:28 pm
Location: Manchester, UK
Contact: Website Twitter

Re: For server applications, is Ubuntu server better than Raspbian on rpi 4?

Thu Jul 02, 2020 2:04 pm

ejolson wrote:
Sat Jun 27, 2020 2:23 am
helpme wrote:
Sat Jun 27, 2020 12:26 am
I was wondering whether Ubuntu server 20.04 would be a better choice than raspbian if one were running server applications on Raspberry pi 4.

Anyone tried Ubuntu server on raspberry pi 4? How was the experience? What problems did you encounter? Slow speed? Is raspbian better?
I installed Focal Fossa on a Pi 3B+ last week. The installation was simple, just download the image, copy it to the card and it works. After seeing how long it took to log in because Ubuntu has to check whether updates are available in the repository each time, I remembered why I didn't like Ubuntu. Then it crashed and so I deleted it. Before I deleted it, I noticed that vcgencmd seemed missing. Does anyone know where vcgencmd is on Ubuntu server?
It's part of the raspberrypi-userland package which is currently awaiting review for inclusion in groovy (and then back-porting to focal); see LP: #1883111 for further details. This package also includes the vcmailbox, dtoverlay, dtmerge, raspivid, raspistill, raspiyuv, and raspividyuv utilities.

One utility which will notably be missing compared to Raspbian is vcdbg as unfortunately that isn't open-source (currently it's only provided as a pre-compiled dynamically linked binary in the raspberrypi/firmware repo) so I don't have the option of including that. This also appears to be the situation in the new 64-bit Raspberry Pi OS however, so I'm hopeful that some alternative may be provided at some point.
Author of / contributor to a few pi related things (picamera, Sense HAT emulator, gpio-zero, piwheels, etc.), and currently a software engineer at Canonical responsible for Ubuntu Server and Core on the Raspberry Pi.

User avatar
waveform80
Posts: 359
Joined: Mon Sep 23, 2013 1:28 pm
Location: Manchester, UK
Contact: Website Twitter

Re: For server applications, is Ubuntu server better than Raspbian on rpi 4?

Thu Jul 02, 2020 2:06 pm

helpme wrote:
Tue Jun 30, 2020 11:20 am
Seems like booting from SSD can be done

https://www.tomshardware.com/how-to/boo ... y-pi-4-usb
Sadly we can't support pure USB MSD boot at this time on Ubuntu; the u-boot portion of our boot process is incompatible with it (on all models; on the Pi 4 specifically it currently lacks drivers for the VL805 but on all models the MSD support appears broken despite USB HID drivers operating correctly).

I'm working on a modification of the boot process for future revisions to enable this but there's currently no time estimate and the possibility of back-porting it to focal is doubtful (the transition is likely to be too complex to reliably support).
Author of / contributor to a few pi related things (picamera, Sense HAT emulator, gpio-zero, piwheels, etc.), and currently a software engineer at Canonical responsible for Ubuntu Server and Core on the Raspberry Pi.

jsciamms
Posts: 20
Joined: Wed Jul 01, 2020 2:11 am

Re: For server applications, is Ubuntu server better than Raspbian on rpi 4?

Tue Jul 07, 2020 1:49 pm

waveform80 wrote:
Thu Jul 02, 2020 2:06 pm
helpme wrote:
Tue Jun 30, 2020 11:20 am
Seems like booting from SSD can be done

https://www.tomshardware.com/how-to/boo ... y-pi-4-usb
Sadly we can't support pure USB MSD boot at this time on Ubuntu; the u-boot portion of our boot process is incompatible with it (on all models; on the Pi 4 specifically it currently lacks drivers for the VL805 but on all models the MSD support appears broken despite USB HID drivers operating correctly).

I'm working on a modification of the boot process for future revisions to enable this but there's currently no time estimate and the possibility of back-porting it to focal is doubtful (the transition is likely to be too complex to reliably support).
There is a workaround. Just having apt decompress the kernel whenever there is an update, and manually decompressing the kernel on the initial boot allows Ubuntu to be booted directly from usb. See my earlier post.
viewtopic.php?f=131&t=278791

Return to “Ubuntu”