this post was submitted on 05 Oct 2024
56 points (96.7% liked)

Selfhosted

40394 readers
467 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I have an old ThinkPad 11e running Debian that I have repurposed into a home server. It's only supposed to run TVheadend. I don't need any other services for now, but later on i might add a few using docker.

Is it enough to set multiuser.target as default to disable gui and keep the system always on?

How can I disable all unnecessary services and minimize power usage?

you are viewing a single comment's thread
view the rest of the comments
[–] hendrik@palaver.p3x.de 7 points 1 month ago* (last edited 1 month ago)

I usually do the expert install and don't install a graphical environment in the first place. But your solution should be fine, too. I think you can show running services with systemctl and then disable unneeded ones. For example systemctl disable gdm but there shouldn't be that much running on a plain Debian anyways.

For powersave I run powertop in auto-tune mode as a systemd service. A description is here: https://wiki.archlinux.org/title/Powertop

Unfortunately, the Debian Wiki doesn't seem to have a lot on laptop power saving. The Arch wiki has some more (random) info: https://wiki.archlinux.org/title/Power_management

I'd say do the powertop systemd service on startup, set the multiuser target or disable the login manager and that's it.