2

The Debian image for the BeagleBone Black that they have on their website comes with a GUI by default. I'd like to completely disable the GUI, but in the simplest way possible. It is used as a headless device and doesn't need those resources sucked up.

I have successfully disabled it, but I feel my procedure is breaking things behind the scenes. All I am doing is:

apt-get remove lightdm

In retrospect, perhaps apt-get purge would be better.

Can anyone see holes in the method, or recommend a better method?

Thanks.

BenjiWiebe
  • 9,173
Atomiklan
  • 657

3 Answers3

5

aptget remove lightdm should work fine, if you want to remove it. If you just want to disable it, go to /etc/rc2.d and delete the one with lightdm in its name.

BenjiWiebe
  • 9,173
4

Add following to /boot/uboot/uEnv.txt:

## For BBB Debian OS  
## This disables lightdm run from "/etc/init.d/lightdm".
optargs=text
atomic
  • 41
2

If you only want to disable the gui rather than removing it entirely, then instead of editing any rc.d files manually, the preferred way is to run the following command:

    sudo update-rc.d lightdm disable