Prototypology/Exhibitiology-2

From XPUB & Lens-Based wiki
Revision as of 19:17, 30 June 2025 by Berna Bereit (talk | contribs) (small but essential typo _ xrandr command instead of arandr)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How to setup (Debian 12 with Gnome) as a media player with multiple monitors for an exhibition?

  • 1. install i3 wm
$ sudo apt install i3
  • 2. logout and login with the i3 wm. now its time to enable autologin:
    • use nano and open the file
$ sudo nano /etc/gdm3/daemon.conf
    • change the lines
[daemon]
AutomaticLoginEnable=True
AutomaticLogin=username
  • 3. reboot the machine :D
  • 4. now the machine should login without password
  • 5. create a bash script
$ nano start.sh
    • it should look like this:
#!/bin/bash
#reset the monitors to one specific size. for example the following command combines two 1920x1080 monitors
#DP-0 and DP-4 are in this case the monitor names. you can look them up with the xrandr command and rearrange the monitors
xrandr --setmonitor newMonitor 3840/0x1080/0+0+0 DP-0,DP-4

#start vlc with video
vlc Desktop/YOURVIDEO.mp4
  • 6. make the script exectuable with the follwing command:
$ chmod +x  start.sh
  • 7. test the script with the following command:
$ ./start.sh
  • 8. add the script to the last line of ~/.config/i3/config with the following command:
exec --no-startup /home/xpub/start.sh
  • 7. reboot and check if the video starts playing automagically
  • 7. observe if the screensaver is off