gschmidt
Posts: 4
Joined: Sun Mar 02, 2014 10:08 am

Raspbian Buster from desktop back to headless?

Thu Feb 13, 2020 6:36 pm

Hi,

I installed Raspbian Buster Desktop with recommended software on a RPi 3b+.
Is it possible to switch back to headless?
And if so, does it benefit the amount of RAM and CPU usage?

jahboater
Posts: 5759
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: Raspbian Buster front desktop back to headless?

Thu Feb 13, 2020 6:39 pm

Its probably quickest to just put Raspbian Lite on a new SD card.

Then you have a backup (the old card) in case anything goes wrong.

You may place the old SD card in a USB card reader, plug it into the Pi, and retrieve any files you want.
Pi4 8GB running PIOS64

gschmidt
Posts: 4
Joined: Sun Mar 02, 2014 10:08 am

Re: Raspbian Buster from desktop back to headless?

Thu Feb 13, 2020 6:47 pm

Well I already installed Domoticz, Letsencrypt, Mosquitto (Zigbee2mqtt) and node-red.
This took quite a while...especially Letsencrypt and Zigbee2mqtt (I had to pair all my devices)

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Raspbian Buster from desktop back to headless?

Thu Feb 13, 2020 6:56 pm

gschmidt wrote:
Thu Feb 13, 2020 6:36 pm
Hi,

I installed Raspbian Buster Desktop with recommended software on a RPi 3b+.
Is it possible to switch back to headless?
And if so, does it benefit the amount of RAM and CPU usage?

"Is it possible to switch back to headless?"

If you disconnect the display, keyboard and mouse and access the system remotely via a network connection isn't that 'headless'? What else might be involved?

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5623
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Raspbian Buster from desktop back to headless?

Thu Feb 13, 2020 6:57 pm

Another approach might be to:
a) Uninstall some of the recommended software (that will free up space). This is probably easier with using the Add/Remove software GUI from the Preferences menu.
then b) change the boot option to be to the Command Line rather than the Desktop (gives you the option to use startx to get the Desktop back should you decide to connect a display again for a while.
Personally, since all of my Pi's may be booted with or without a display etc. (ie. sometimes headless, sometimes not.) but I rarely use any of the extra software within that recommended, I prefer to install Raspbian + Desktop and by default, enable boot to command line. In other words, Raspbian Lite is a little too "Light" for me, but, of course, others have different needs/preferences.
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

User avatar
HawaiianPi
Posts: 5838
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Raspbian Buster from desktop back to headless?

Thu Feb 13, 2020 7:06 pm

gschmidt wrote:
Thu Feb 13, 2020 6:36 pm
I installed Raspbian Buster Desktop with recommended software on a RPi 3b+.
Is it possible to switch back to headless?
Any version of Raspbian can be run on a headless system.

If you mean booting to CLI (the command line interface), without loading the desktop-GUI, that can be set in the Raspberry Pi Configuration utility (change Boot from To Desktop to To CLI).

Not loading the desktop will save some RAM, so if you don't run software that needs a GUI, booting to the CLI will save some memory.

However, it will still be using up storage space on your SD card, so you could free up some storage space by running Raspbian Lite (on another card, if you don't want to lose your current configuration, as jahboater suggested above).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

gschmidt
Posts: 4
Joined: Sun Mar 02, 2014 10:08 am

Re: Raspbian Buster from desktop back to headless?

Thu Feb 13, 2020 8:11 pm

HawaiianPi wrote:
Thu Feb 13, 2020 7:06 pm
Not loading the desktop will save some RAM, so if you don't run software that needs a GUI, booting to the CLI will save some memory.

However, it will still be using up storage space on your SD card, so you could free up some storage space by running Raspbian Lite (on another card, if you don't want to lose your current configuration, as jahboater suggested above).
I only use VNC to connect once in a while, but most of the time I use ssh and winscp. Domoticz and node-red are accessed via a webserver. So I also hardly use the recommended software.
The reason I asked was that I was wondering if Domoticz, Zigbee2mqtt and node-red still can work properly with the RAM and CPU usage that is left over?

Return to “General discussion”