2019-04-17, 18:48
New forum member here, but not new to KODI.
Greetings from South Carolina!
I've run KODI mostly on Raspberry PIs, but decided I wanted a little more horsepower so I scrounged up a PC, installed Debian Stretch, Webmin, and KODI.
I've been trying to get KODI to auto login as the KODI user and launch KODI with no success. I tried the same method that worked on the Raspberry PIs but that has been unsuccessful.
Basically this;
This is the /etc/systemd/system/kodi.service unit file:
[Unit]
Description = Kodi Media Center
[Service]
User = kodi
Group = kodi
Type = simple
ExecStart = /usr/bin/kodi-standalone
Restart = always
RestartSec = 15
[Install]
WantedBy = multi-user.target
To install, enable and run the service:
systemctl daemon-reload
systemctl enable kodi.service
systemctl start kodi.service
The kodi user was created with the following commands:
adduser --disabled-password --gecos "User to run Kodi Media Center" kodi
adduser kodi audio
adduser kodi video
adduser kodi plugdev
adduser kodi input
The kodi-standalone service does run, but it doesn't login and launch the GUI. If I manually login as the root user I get an error "unable to create gui". I think this is related to my not being logged in as the kodi user.
Now I'm seeing a lot of threads saying that I need to install a desktop environment to be able to auto login/launch KODI. Is that the case? I'd rather not give extra resources to a DE if I don't have to.
I not completely ignorant of LINUX but it helps if I have a roadmap to follow.
Thanks!
Greetings from South Carolina!
I've run KODI mostly on Raspberry PIs, but decided I wanted a little more horsepower so I scrounged up a PC, installed Debian Stretch, Webmin, and KODI.
I've been trying to get KODI to auto login as the KODI user and launch KODI with no success. I tried the same method that worked on the Raspberry PIs but that has been unsuccessful.
Basically this;
This is the /etc/systemd/system/kodi.service unit file:
[Unit]
Description = Kodi Media Center
[Service]
User = kodi
Group = kodi
Type = simple
ExecStart = /usr/bin/kodi-standalone
Restart = always
RestartSec = 15
[Install]
WantedBy = multi-user.target
To install, enable and run the service:
systemctl daemon-reload
systemctl enable kodi.service
systemctl start kodi.service
The kodi user was created with the following commands:
adduser --disabled-password --gecos "User to run Kodi Media Center" kodi
adduser kodi audio
adduser kodi video
adduser kodi plugdev
adduser kodi input
The kodi-standalone service does run, but it doesn't login and launch the GUI. If I manually login as the root user I get an error "unable to create gui". I think this is related to my not being logged in as the kodi user.
Now I'm seeing a lot of threads saying that I need to install a desktop environment to be able to auto login/launch KODI. Is that the case? I'd rather not give extra resources to a DE if I don't have to.
I not completely ignorant of LINUX but it helps if I have a roadmap to follow.
Thanks!