Pre-requisite: Debian Linux should be already running on your tablet. Please refer to the corresponding documentation, according to your hardware choice. For BeagleBoard Black, just install a minimal image from their page No need for xFCE version, as we’ll install a different, minimal, window manager below. Also, please take care to install it on the internal eMMC drive if you’re using a BeagleBone Black.

Once you’re logged-in the freshly booted system, proceed to installing the required packages.

sudo -i
apt install matchbox unclutter chromium

This operation will download quite a number of packages, so be prepared to wait.

Now that the required packages are being installed, let’s create our default user and set-up auto-login for them.

adduser tableta
mkdir -p /etc/systemd/system/getty@tty1.service.d
cat <<EOF > /etc/systemd/system/getty@tty1.service.d/autologin.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin tableta --noclear %I %TERM
EOF

Now, reboot to test the autologin.

reboot

After reboot, you should get to a session under the user tableta.

cd
echo "Loading..." > banner.txt
cat <<EOF >> ~/.profile
if [[ $(who am i) =~ \([0-9\.]+\)$ ]];
then
       :
else
	[ -z "$SSH_CONNECTION" ] && startx 2>&1 >/dev/null
fi
EOF

Above instructions modified the .profile file so the X11 session automatically starts when user logins. And, remember, the system auto-logins to tableta user. So, this will effectively launch the graphical session upon system start. Now, let’s tell it what to load in the graphical session.

Final step is to create this file:

cat <<EOF > ~/.xinitrc
#!/bin/sh

[ ! -z "$SSH_CONNECTION" ] && exit 0

cat banner.txt
matchbox-window-manager &
unclutter &

rm -rf /home/tableta/.config/chromium/Default/*

chromium --noerrdialogs --disable-infobars --kiosk --private-window http://homeassistant
EOF

Reboot the tablet and enjoy your new HA wall-mounted tablet!

Back to main article