codesnip

Want your linux arcade machine to boot right into, and shut down from your attract-mode front end?

Change to OpenBox as your window manager:

log out, select openbox above
log in
reboot

Add attract mode to autostart with openbox

vim ~/.config/openbox/autostart

paste this:

#AutoStart Attract-Mode
attract

:wq

Hide the UI even further by changing the default colors to black

sudo vim /usr/lib/x86_64-linux-gnu/openbox-autostart
change line under
# Set a background color
from
BG=””
to
BG=”#000000″

and this line:
#test -z $BG || $BG -solid “#303030”
to
#test -z $BG || $BG -solid “#000000”

Enable shutdown directly from exiting attract-mode:

sudo visudo -f /etc/sudoers

#!! IMPORTANT: !! – PUT THIS AT THE END OF THE FILE AFTER THE LAST LINE OR YOU WILL BRICK.

username ALL=(ALL) NOPASSWD: ALL

Then in attract mode:

exit command
sudo shutdown now

Want closing your laptop lid to do nothing?

Edit /etc/systemd/logind.conf

sudo vim /etc/systemd/logind.conf

find or add this line, make sure it’s not commented:

HandleLidSwitch=ignore

save and reboot.

  • Enabling an Attract-Mode intro video
    Enabling an Attract-Mode intro video
  • Installing Linux for MAME emulation
    Installing Linux for MAME emulation
  • Vade Retro Microsoft. Hello Linux.
    Vade Retro Microsoft. Hello Linux.
  • Migrate shared hosting email to a new host with imapsync
    Migrate shared hosting email to a new host with imapsync