Difference between revisions of "Lobby TV Display Computer"

From Michael's Information Zone
Jump to navigation Jump to search
Line 25: Line 25:
 
useradd publicuser
 
useradd publicuser
 
rm -f /etc/systemd/system/getty.target.wants/getty@tty1.service
 
rm -f /etc/systemd/system/getty.target.wants/getty@tty1.service
 +
cp /lib/systemd/system/getty@.service /etc/systemd/system/getty@tty1.service
 +
sed -i -e "s/\/sbin\/agetty/\0 --autologin publicuser/" /etc/systemd/system/getty@tty1.service
 +
ln -s /etc/systemd/system/getty@tty1.service /etc/systemd/system/getty.target.wants/getty@tty1.service
 
</pre>
 
</pre>

Revision as of 12:31, 18 May 2022

Purpose

To display content on a lobby TV.

General Process

Computer connects to a website using a browser in full screen mode, the website manages the content and redirects if needed. The PC should never need to be touched.

PC Config

  • Networking : Use wired connectivity where possible. WiFi instructions per OS provided below where applicable.

CentOS 9 Stream

NOTE : This is still in testing.
NOTE : Chromium is not in the repos for CentOS Stream. The computer I am using is very slow and I don't feel like compiling. Will use Chrome instead.[1]

  • Minimal install of CentOS 9 Stream
  • Dump of commands, could be used for a script. Change the URL to match your environment.
dnf -y update
dnf install -y epel-release
dnf makecache
dnf install -y wget tar
rpm --import https://dl.google.com/linux/linux_signing_key.pub
dnf install -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
dnf install -y openbox xorg-x11-drv-libinput xorg-x11-server-utils xorg-x11-xinit
wget -O unclutter.tar.zst --content-disposition --max-redirect=5 https://www.archlinux.org/packages/community/x86_64/unclutter/download/
zstd -d unclutter.tar.zst -o unclutter.tar
tar -xf unclutter.tar
mv usr/bin/unclutter /usr/bin/unclutter
useradd publicuser
rm -f /etc/systemd/system/getty.target.wants/getty@tty1.service
cp /lib/systemd/system/getty@.service /etc/systemd/system/getty@tty1.service
sed -i -e "s/\/sbin\/agetty/\0 --autologin publicuser/" /etc/systemd/system/getty@tty1.service
ln -s /etc/systemd/system/getty@tty1.service /etc/systemd/system/getty.target.wants/getty@tty1.service