XHost errors when trying to run programs as root
From MEPIS Documentation Wiki
If you get errors when you try to run a program as root, use one of these fixes:
- Log in to normal user, start the program with "kdesu". For example to start kwrite type in terminal: "kdesu kwrite"
- Another solution is to install the sux program and use that in the place of su in the terminal. It is available through synaptic, kpackage or apt-get install from terminal.
- Another solution: Execute "xhost +local:root" (as normal user) before you try to run a program as root. To retain this configuration everytime you run Konsole you can add "xhost +local:root>/dev/null" in ~/.bashrc (that's the bash configuration file in home directory)