Server Version#: ubuntu server 22.04, Nvidia graphic driver ubuntu nvdia-driver-515, Intel core I5-6600 skylake, EVGA GeForce GTX 1060 SC, 32GB RAM
Player Version#: latest Plex HTPC snap
I installed Plex HTPC on ubuntu server 22.04 (not ubuntu desktop).
The steps I followed to start Plex HTPC on start up are as follows:
After installing Ubuntu server 22.04 on my main machine, installed following packages as follows:
sudo apt install xauth xorg xinit xserver-xorg-core xserver-xorg xserver-common alsa-utils -y
after installing the said packages, I installed Plex HTPC from the snapstore using the following command:
sudo snap install plex-htpc
after installing the Plex HTPC, I created a systemd startup script as follows:
sudo nano /etc/systemd/system/plex-htpc.service
[Unit]
Description = Starts an instance of Plex HTPC using xinit
After=remote-fs.target systemd-user-sessions.service network-online.target sound.target polkit.service upower.service
Wants=network-online.target polkit.service upower.service
Conflicts=getty@tty1.service
[Service]
User=plex
Group=plex
PAMName = login
TTYPath=/dev/tty1
Environment=WINDOWING=x11
ExecStart = /usr/bin/xinit /var/lib/snapd/desktop/applications/plex-htpc_plex-htpc.desktop – :0 -quiet -nolisten tcp vt1
Restart=on-abort
StandardInput=tty
StandardOutput=journal
[Install]
Alias=display-manager.service
Then enabled the systemd service to start on startup as follows:
sudo systemctl enable plex-htpc.service
On retsrating the machine, i get the Plex HTPC running on start up but in a windowed mode.
I tried using the built in setting inside the Plex HTPC to full screen, tried changing video zoom setting with no luck.
I installed kodi using the similar method which starts up in full screen.
I would appreciate any tips or tricks to help get Plex HTPC to open in full screen on startup.
Thank you.