How to start Libreelec without kodi ? only cli

  • Hello everyone. I would like to know if there is a way to start libreelec without kodi gui only cli. I dont want to spend resources on kodi .. as kodi eats more then half of the ram.

  • Hi escalade and thanks for the reply . I want to use it as vpn client and maybe run some web server on the box that's why i don't need kodi ( i won't use it as media player) . If i put sleep loop how could i use it at all ? i wont be able to ssh or do whatever ?

  • You could probably run a script when kodi starts, that execute the command "systemctl stop kodi" ;)


    8.90 ⇒ MeCool KI Pro ⇒ Onkyo TX-NR656 ⇒ SAMSUNG 65"LED/UHD/PQ1300/T2CS

    LG BP50NB40 USB Blu-ray

  • Hi 2re. Thanks for the repy. Here is the output after issuing "systemctl stop kodi" (the command didn't helped much ) :

    LibreELEC:~/install # free -m
    total       used       free     shared    buffers     cached
    Mem:           343        177        166          0         10        101
    -/+ buffers/cache:         64        278
    Swap:          255          0        255

    and here you can find my hw that's why i suppose that libreelec reserves more then half of the ram at boot time. I have even tried to disable starting of kodi with systemctl disable kodi and rest of the kodi services but after reboot they have started again.

  • You can do that by masking the kodi systemd service, plus maybe some others you don't need/want (eventlircd etc)

    systemctl mask kodi

    Only drawback is that then you have to care about addon updates / installation yourself.

    Search the forum, we've discussed that before.

    so long,


  • verb

    The file is the last thing that's run before Kodi starts, so the system is otherwise fully booted. So creating a sleep loop there will prevent Kodi from starting.

    I'm still confused as to what you are going to do next. You realize that LibreELEC is not a standard Linux distribution with a package manager, right? There's no webserver shipped with LibreELEC. There is OpenVPN so you can set up your box as a VPN client, but then what?

  • To stop kodi running at boot, do the following:

    touch .config/system.d/kodi.service

    To re-enable just delete that file.

    • Official Post

    Why even run LibreELEC at this point?

    the easiest way is to do

    systemctl mask kodi.service

    then to undo

    systemctl unmask kodi.service
  • I am sure Armbian has a Linux port for your box. I am running Ubuntu 16.04 on a couple of my arm devices, including one of my Amlogic boxes.