Fix display not found when running commands under sudo The following command MUST be run as a normal user to allow the user root to open/use the X11 server. xhost +si:localuser:root Then the following command will work: sudo zenmap