22.7. Exercises

E22.1

Use SSH to run an X program over the network. Use ssh -v to verify that X forwarding is set up correctly. What is the DISPLAY variable set to after you log in? List the cookies by running xauth and verify that magic cookie authentication is active for that display.

E22.2

Write a shell command line or script to parse the output of xdpyinfo and print the current screen resolution in the format X×Y, e.g., 1024 × 768.

E22.3

Examine the Xorg log file (/var/log/Xorg.0.log) and determine as many of the following items as possible:

a. What type of video card is present and which driver does it use?

b. How much video memory does the card have?

c. Was EDID used to probe monitor settings? How do you know?

Get Linux Administration Handbook, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.