Connect a new X client to display 0 and screen 0 on the local host.
Which environment assignment is conventional?
DISPLAY uses host:display.screen syntax. :0.0 means local display 0, screen 0.
Detailed explanation
XSERVER=0.0Incorrect. XSERVER is not the standard client display variable.
SCREEN=localhostIncorrect. SCREEN is not the standard DISPLAY variable.
export XAUTH=:0Incorrect. XAUTH selects authorization data, not the display destination.
export DISPLAY=:0.0Correct. export DISPLAY=:0.0 directs clients to the local display and screen.
Try it yourself
An example you can run in a temporary verification environment.
DISPLAY=:0.0 sh -c 'printf "%s\n" "$DISPLAY"'Expected result
:0.0。X serverへ接続は行わないKey points
- DISPLAY
- :0.0
- host:display.screen
Notes
- Environment: shell変数展開のみ
- Use read-only help or environment inspection when checking X11 commands.
- Exact display-manager and desktop packages vary by distribution.
Foundation review
Place the operation
DISPLAY selects a destination; it does not itself authenticate the client or start an X server.
Check the side effect
Avoid overwriting DISPLAY when SSH forwarding has already configured a secure destination.