How to use irrecord to program a remote

I have a remote I’m trying to set up to use with the exelent Vero 4K

But when I try to run irrecord I get this error, what am I doing wrong? I can’t find a way to stop Lirc if thats the solution.

"osmc@osmc:~$ irrecord -d /dev/lirc0 test.conf

irrecord - application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

irrecord: could not open /dev/lirc0
irrecord: default_init(): Device or resource busy
irrecord: could not init hardware (lircd running ? → close it, check permissions)"

Please help me =)

Here you go

Great, thanks fzinken! I used this from the tread you linked to me.

"
cd /etc/lirc
systemctl stop mediacenter
systemctl stop eventlircd
systemctl stop system-lircd_helper.slice

irrecord -f -d /dev/lirc0 configname.conf

Follow the instructions

rm lircd.conf

ln -s /etc/lirc/configname.conf lircd.conf

reboot
"

I thinks this info should be more easy to find, like a link from the Vero 4K quickstart guide to a Wikipage or something. Also what port on the backside is for the IR extender… (the one closest to the edge)