Is it possible to install openjdk-8-jre-headless on RPi4?

Is it possible to install openjdk-8-jre-headless on RPi4?
I need it to install the unifi controller, and I prefer not to use docker.

Why not try it? I imagine it will work.

In the official repositories there is only version 11, openjdk-11-jdk-headless, which does not work with the unifi controller.
Is it possible to add some old repository, debian, raspbian?

I would like to install the unifi controller also on my vero but im only familiar with relative simple installs. So a step by step guide would be cool ,if someone knows how to do this. Tom

Hi,

Looks like it should work with docker:

Thanks Tom.

Is this the same for vero?
So every sudo is a new command Line i should type in SSH?

Hi,

I canā€™t see why not

All the lines except change IDs (this are the edits) need to be run.

Thanks Tom.

Could you simplify this text a bit? So what i need to give in SSH as command. If its not to much Troubleā€¦ Im still learning to use the command Line. Thanks in advance

Hi,

Not really, its list of commands that need to be run. This should help:

Thanks Tom.

Ok i understand but i mean could you delete the lines of the id in the text above. Because i dont know exactly where to start and finish the chance of linesšŸ™ƒ

Hi,

Change id= are changes to /etc/os-release. You need to find the line in that file and update as advised.

Thanks Tom.

1 Like

ok sorry still noobish here :grimacing:

this is what i get after installing the first line in ssh
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent

permitted by applicable law.

Last login: Sun Nov 14 10:10:42 2021 from 192.168.0.178

osmc@osmc:~$ sudo nano /etc/os-release=osmc

osmc@osmc:~$ sudo sh get-docker.sh

sh: 0: Canā€™t open get-docker.sh

osmc@osmc:~$ curl -fsSL https://get.docker.com -o get-docker.sh

osmc@osmc:~$ sudo sh get-docker.sh

Executing docker install script, commit: 93d2499759296ac1f9c510605fef85052a2c32be

  • sh -c apt-get update -qq >/dev/null

  • sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl gnupg >/dev/null

  • sh -c curl -fsSL ā€œhttps://download.docker.com/linux/raspbian/gpgā€ | gpg --dearmor --yes -o /usr/share/keyrings/docker-archive-keyring.gpg

  • sh -c echo ā€œdeb [arch=armhf signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] Index of linux/raspbian/ buster stableā€ > /etc/apt/sources.list.d/docker.list

  • sh -c apt-get update -qq >/dev/null

  • sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends docker-ce-cli docker-ce >/dev/null

E: Sub-process /usr/bin/dpkg returned an error code (1)

osmc@osmc:~$

Hi,

Just tried to set this up on my test vero4k. Slight change in instructions, so please revert any previous changes and try this:

sudo update-alternatives --set iptables /usr/sbin/iptables-legacy

Then follow the instructions for installing docker from here:

Then finish the unifi installation with:

sudo usermod -aG docker $USER
sudo apt install docker-compose
sudo reboot 0
mkdir unifi && cd unifi
curl -O https://raw.githubusercontent.com/ryansch/docker-unifi-rpi/master/docker-compose.yml
sudo docker-compose up -d

Thanks Tom.

1 Like

Thanks a lot name mate :slight_smile:
i got it all installed now, one more question,
How do i start the controller now in osmc , is it only ssh or can i see the controller on my tv screen now?
thanks in advance
Tom

Hi,

Sorry donā€™t a lot about the unifi controller. More can found here though:

https://hub.docker.com/r/ryansch/unifi-rpi

Thanks Tom.

i go to cd unifi
and then i go to sudo service unifi status
it says service not found

ok i understand , i have got a step further thanks to you, maybe if someone else reads this they can help further.

Thanks a lot

1 Like