How to Stop Ubuntu from Automatically Starting the Camera

The Unwanted Webcam Feed

Ubuntu includes several default applications designed to make hardware integration seamless out of the box. One common issue arises with webcam-related software, particularly the default webcam viewer application known as “Cheese.” Under certain system configurations or when using specific USB hubs, plugging in a new USB webcam (or occasionally even just booting a laptop with an integrated camera) can trigger a `udev` hardware rule that automatically launches the camera application. This immediately turns on the webcam’s recording light and displays a live video feed on your desktop, which is a jarring and immediate privacy concern if you were not intending to make a video call.

Removing the Default Camera Software

To stop Ubuntu from automatically starting the camera app when hardware is detected, the most robust solution is to completely uninstall the default viewer application if you do not actively use it.

Open your terminal application (`Ctrl + Alt + T`). The default webcam software on Ubuntu is called Cheese. To remove it, along with its associated auto-start triggers, type the following command: sudo apt-get remove --purge cheese and press Enter. Enter your sudo password when prompted. The `–purge` flag ensures that any lingering configuration files are also deleted. After the removal is complete, run sudo apt-get autoremove to clean up any orphaned dependencies that were installed alongside Cheese. If you still need a way to test your webcam locally without auto-start issues, you can install a much lighter, more strictly controlled alternative like `guvcview` (by running `sudo apt install guvcview`), which must be launched manually and does not hook into aggressive USB auto-run rules.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.