OS2borgerPC Kiosk generel
Source: Download script
Last Updated: 11. September 2025 by Agnete Moos (agms@sonderborg.dk)
Click to see the source code
#! /usr/bin/env sh
# General information script for OS2borgerPC Kiosk, useful for debugging
# Please add more commands to this script as needed and commit the changes
USER="chrome"
header() {
MSG=$1
printf "\n\n\n%s\n\n\n" "### $MSG: ###"
}
text() {
MSG=$1
printf "\n%s\n" "### $MSG: ###"
}
header "General information from only a basic setup"
text "Information about the computer model"
dmidecode --type 1
text "LAN or Wi-Fi?"
ip link
text "List disk space usage"
df -h
text "Files under /usr/share/os2borgerpc/bin"
ls -la /usr/share/os2borgerpc/bin/
text "OS2borgerPC configuration file"
cat /etc/os2borgerpc/os2borgerpc.conf
text "OS2borgerPC client version"
pip3 list installed | grep os2borgerpc-client
text "Info on check-in minutes"
cat /etc/cron.d/os2borgerpc-jobmanager
text "Info on check-in seconds"
cat /usr/share/os2borgerpc/bin/check-in.sh
header "Chromium / Xorg info"
text "Is Chromium running?"
pgrep --list-full chrome # yes, the binary is called 'chrome'
text "The version of Chromium"
chromium-browser --version
text "Contents of chrome's home directory"
ls -la /home/$USER/
text "Contents of chrome's .profile-file:"
cat /home/$USER/.profile
text ".xinitrc contents"
cat /home/$USER/.xinitrc
text "Check files in /tmp/ (this directory contains auth-files and lock-files)"
ls -al /tmp/
header "Info about kernel, devices and drivers"
text "List currently active kernel version"
uname -a
text "List all installed kernels"
dpkg --get-selections | grep --invert-match deinstall | grep linux-image
text "List kernel modules currently loaded (fx. drivers)"
lsmod
text "List info on connected hardware"
lshw
header "Information about monitors"
text "rotate_screen.sh's permissions"
ls -l /usr/share/os2borgerpc/bin/rotate_screen.sh
text "rotate_screen.sh's contents"
cat /usr/share/os2borgerpc/bin/rotate_screen.sh
text "Old rotate_screen.sh's permissions"
ls -l /usr/local/bin/rotate_screen.sh
text "Old rotate_screen.sh's contents"
cat /usr/local/bin/rotate_screen.sh
text "Run xrandr to get info about monitors"
export DISPLAY=:0
export XAUTHORITY=/home/$USER/.Xauthority
xrandr
header "Information for those running the onboard keyboard, possibly including the button to hide it"
text "bspwmrc contents"
cat /home/$USER/.config/bspwm/bspwmrc
text "start_chromium.sh contents"
cat /usr/share/os2borgerpc/bin/start_chromium.sh
ls -la /usr/share/os2borgerpc/bin/keyboard-button/
text "bspwm_add_button.sh contents"
cat /usr/share/os2borgerpc/bin/keyboard-button/bspwn_add_button.sh
header "Print Xorg.log excerpt (fx. if Xorg fails to start)"
tail --lines=250 /home/$USER/.local/share/xorg/Xorg.0.log
# Always exit successfully as some of these files may not exist simply because the related
# scripts haven't been run, so it's not an error
exit 0
Beskrivelse
Skriver informationer om en OS2borgerPC Kiosk-maskine til job-loggen, som kan være brugbart ift. fejlfinding.