i3 unter Raspbian

Nach langer Suche konnte ich endlich eine einfache Anleitung finden, um i3 als Desktopenvironment nutzen zu können, ohne, wenn ich es wechseln will, wieder in irgendwelchen Dateien rumfummeln zu müssen. Unten habe ich den technisch relevanten Auszug, hier ist die Quelle; auf dass sie uns noch lange im Original erhalten bleiben möge!

Steps to reproduce if you mainly use the GUI:

  • Boot rasperry pi and log into raspbian
  • Open a terminal
  • Update and install i3
    $ sudo apt update & sudo apt install i3 dmenu suckless-tools
  • Change the greeter so we can select i3 and log into i3 (or not when we don’t want to use it)
    $ sed -i s/greeter-session=pi-greeter/greeter-session=lightdm-gtk-greeter/g /etc/lightdm/lightdm.conf
  • Disable auto log in via raspi-config
    $ sudo raspi-config
  • Select „Boot Options“
  • Select „Desktop/CLI“
  • Select „Desktop“
  • Reboot
  • Profit! 😀

Steps to reproduce if you use console interface most of the time and occasionally use a GUI:

  • Boot raspberry pi and log into raspbian
  • Update and install i3
    $ sudo apt update & sudo apt install i3 dmenu suckless-tools
  • Add i3 to our xinit.rc file so startx will run i3
    $ echo „exec i3“ > .xinit.rc
  • Start xserver
    $ startx