X11

Utilities

xprop – property displayer for X

The xprop utility is for displaying window and font properties in an X server.

To display the name of the root window: xprop -root WM_NAME

To display the window manager hints for the clock: xprop -name xclock WM_HINTS

To display the start of the cut buffer: xprop -root -len 100 CUT_BUFFER0

To display the point size of the fixed font: xprop -font fixed POINT_SIZE

To display all the properties of window # 0x200007: xprop -id 0x200007

To set a simple string property: xprop -root -format MY_ATOM_NAME 8s -set MY_ATOM_NAME  "my_value"

xhost – server access control program for X

The xhost program is used to add and delete host names or user names to the list allowed to make connections to the X server.

[+]nameThe given name (the plus sign is optional) is added to the list allowed to connect to the X server. The name can be a host name or a complete name. The name can be a host name or a complete name (See NAMES for more details).
-nameThe given name is removed from the list of allowed to connect to the server. The name can be a host name or a complete name (See NAMES for more details).
+Access is granted to everyone, even if they aren’t on the list (i.e., access control is turned off).
Access is restricted to only those on the list (i.e., access control is turned on).
A complete name has the syntax ``family:name'' where the families are as follows:

inet      Internet host (IPv4)
inet6     Internet host (IPv6)
dnet      DECnet host
nis       Secure RPC network name
krb       Kerberos V5 principal
local     contains only one name, the empty string
si        Server Interpreted

Allow access to all

xhost +

Allow access to all local processes

$ xhost +local:
non-network local connections being added to access control list