Skip to content

2.1.20 Ensure X window server services are not in use

Audit#

- IF - a Graphical Desktop Manager or X-Windows server is not required and approved by local site policy: Run the following command to Verify X Windows System is not installed:

dpkg-query -s xserver-common &>/dev/null && echo "xserver-common is installed"
Nothing should be returned

Remediation#

- IF - a Graphical Desktop Manager or X-Windows server is not required and approved by local site policy: Run the following command to remove the X Windows System packages:

# apt purge xserver-common