Skip to content

Instantly share code, notes, and snippets.

@underdoeg
Last active January 1, 2016 16:59
Show Gist options
  • Select an option

  • Save underdoeg/8174076 to your computer and use it in GitHub Desktop.

Select an option

Save underdoeg/8174076 to your computer and use it in GitHub Desktop.
black box debian

Notizen zur Installation

Debian

  • Debian Small Installation image laden http://www.debian.org/distrib/
  • Beim Installieren darauf achten, dass keine GUI mitinstalliert wird
  • Nachträglich xorg installieren sudo apt-get install xorg
  • Xorg so konfigureren, dass jeder user startx ausführen kann dpkg-reconfigure xserver-common

DWM

  • dwm runter laden von http://dwm.suckless.org/ oder git clone http://git.suckless.org/dwm
  • dwm anpassen (config.h editieren, showbar=False, topbar = False) und kompilieren mit make

X11

  • ~/.xinitrc restellen und anpassen

xset -dpms xset s off

xsetroot -solid #000000 -display :0.0 xsetroot -name "SCREEN 0" -display :0.0

sh /home/undef/startApp.sh &

exec /home/undef/dwm/dwm

autostart

  • /etc/inittab editieren
  • 1:2345:respawn:/sbin/getty 38400 tty1 ersetzen mit 1:2345:respawn:/bin/login -f YOUR_USER_NAME tty1 </dev/tty1 >/dev/tty1 2>&1
  • ~/.bashrc mit folgendem code erweitern

if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then startx fi

watchdog

  • ein sh script erstellen, das das app automatisch neu startet

cd /home/undef/openFrameworks/examples/graphics/polygonExample/bin/ while true do ./polygonExample done

quit

  • xserver kann mit killall xinit beendet werden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment