# Script: Disable unwanted services

**URL:** <https://klipper.discourse.group/t/script-disable-unwanted-services/10500>\
**Category:** General Discussion\
**Created:** [September 16, 2023, 7:54am UTC](https://klipper.discourse.group/t/script-disable-unwanted-services/10500 "2023-09-16T07:54:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [September 16, 2023, 7:54am UTC](https://klipper.discourse.group/t/script-disable-unwanted-services/10500/1 "2023-09-16T07:54:16Z")

</div>

Some Linux distributions install services that can interfere with Klipper’s ability to access the printer board. So far known are

- ModemManager
- BRLtty

In order to facilitate checking for such services and disabling them, I have written a little shell script: [https://github.com/Sineos/useful\_bits/blob/main/Linux/disable\_unwanted\_services.sh](https://github.com/Sineos/useful_bits/blob/main/Linux/disable_unwanted_services.sh)

Run it via

```auto
curl -sf -L https://raw.githubusercontent.com/Sineos/useful_bits/main/Linux/disable_unwanted_services.sh | sudo bash

```

Above command will run the script as **root**   
Only do this if you trust me or if you have verified the script beforehand.

Any tests would be appreciated. I did test it, but additional tests would be highly appreciated

Edit: Screenshot from testing it how the output looks like:

 ![grafik](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/a/aac02a7fcd593aa38d494f1303bf986d72fc0e4a.png)

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [September 16, 2023, 3:38pm UTC](https://klipper.discourse.group/t/script-disable-unwanted-services/10500/2 "2023-09-16T15:38:32Z")

</div>

Stop liking, start testing! 😇

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)\
**Post date:** [November 15, 2023, 3:39pm UTC](https://klipper.discourse.group/t/script-disable-unwanted-services/10500/3 "2023-11-15T15:39:32Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
