How do I run X windows program as normal user?

How do I run X windows program as normal user?

To run an X Window System program as a normal user on a Linux or Unix system, you need to have access to an X server and the proper permissions to start X programs.

To run an X Window System program as a normal user, follow these steps:

  1. Make sure you have an X server running on your system. On most systems, the X server is started automatically when you log in to a desktop environment. If you are running a headless server or a text-based system, you may need to install and start an X server manually.

  2. Make sure you have the proper permissions to start X programs. On some systems, normal users may not have the permissions to start X programs by default. You can check the permissions by looking at the "xhost" list. To do this, type the following command:

xhost
Source:w‮uttual.ww‬ri.com

If your username is listed in the "xhost" list, you have the permissions to start X programs. If your username is not listed, you may need to add it to the "xhost" list by running the following command:

xhost +
  1. Start the X Window System program you want to run. You can do this by typing the name of the program at the command prompt or by using a command-line interface (CLI) tool such as "gnome-terminal" or "xterm". For example:
gedit

This will start the "gedit" text editor.

With these steps, you should be able to run an X Window System program as a normal user on a Linux or Unix system. Consult the documentation of your X server and the X Window System program you are trying to run for more information on how to use them.

Created Time:2017-10-28 21:38:56  Author:lautturi