Chapter 8 Flashcards

Comparing GUIs

1
Q

Outline the various GUI sections and functions. 

A

A desktop environment provides a predetermined look and feel to the GUI. It has graphical sections, such as a favorites bar, launch areas, menus, panels, and a system tray. The GUI also has typical functions like desktop settings, a display manager, a file manager, icons to access programs, widgets, and a window manager.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe the various GUI desktop environments. 

A

The primary desktop environments used for current Linux distributions include GNOME Shell, KDE Plasma, MATE, and Cinnamon.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Summarize available universal access utilities. 

A

The distinct accessibility tools are located in menus or panels. These panels have various locations around the desktop environments and have names like Universal Access, Accessibility, Assistive Technologies, and so on. It is best to use a desktop environment’s search feature to locate them. The various access tools for vision-impaired users include cursor blinking, cursor size, contract modifications, text size enlargement, sound keys, zoom functions, and screen readers. For those individuals who need access to braille technologies, the brltty software is available. Displayed windows can be set to flash instead of providing a sound alert for those who are hearing impaired. When someone has trouble using the keyboard, there are many settings available, such as bounce keys, repeat keys, screen keyboard, slow keys, and sticky keys. For mouse use difficulties, the tools to explore are double-click delays, gestures, hover clicks, mouse keys, and simulated secondary clicks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Explain the display servers’ role. 

A

A display server is a program or program group that uses a communication protocol to convey information between the GUI and the operating system. The communication protocol is called the display server protocol and can operate over a network. One critical program used with the display server is the compositor. The compositor arranges display elements within a window to create a screen image. Two important display servers are Wayland and X11. X11 is an older display server, which has been around for a while. Wayland is a newer display server, which adds many needed security features and is easier to maintain.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe the available remote desktop software. 

A

Remote desktop software provides a fully functioning desktop environment over the network from a remote server. It uses a client-server model, and there are several packages from which to choose. They include VNC, Xrdp, NX, and SPICE.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Summarize SSH port and X11 forwarding. 

A

SSH port forwarding, sometimes called SSH tunneling, redirects a connection from one particular network port to the SSH service at port 22. This allows data traffic to move back and forth through a secure encrypted tunnel, similar to a virtual private network (VPN). SSH port forwarding has three distinct methods: local, remote, and dynamic. Besides SSH port forwarding, X11 forwarding is also available. It also provides a secure tunnel for GUI interactions. However, instead of a full desktop environment, you can start X11-based graphical utilities from the remote system’s command line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which of the following best describes a desktop environment?

A set of programs that allow a user to interact with the system via icons, windows, and various other visual elements
A screen where you choose a username and enter a password to gain system access
A series of components that work together to provide the graphical setting for the user interface
A program that allows you to perform file maintenance activities graphically
A set of programs that determine how the windows are presented on the desktop
A

C. A desktop environment is a series of components that work together to provide the graphical setting for the user interface. Therefore, option C is the correct answer. A graphical user interface (GUI) is a set of programs that allow a user to interact with the system via icons, windows, and various other visual elements. Thus, option A is a wrong answer. A display manager operates the screen where you choose a username and enter a password to gain system access. Therefore, option B is an incorrect choice. A file manager is the program that allows you to perform file maintenance activities graphically. Thus, option D is also a wrong choice. A window manager is a set of programs that determine how the windows are presented on the desktop. Therefore, option E is also an incorrect choice.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following are GUI components? (Choose all that apply.)

Favorites bar
File manager
Icons
Command line
System tray
A

A, B, C, E. A favorites bar, file manager, icons, and a system tray are all part of a graphical UI. Therefore, options A, B, C, and E are correct choices. A command line is a location to enter text-based commands, and while you can reach it from the GUI using a terminal emulator, it is not considered to be part of the graphical UI. Therefore, option D is the only incorrect choice.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following is not used by default within GNOME Shell?

SDDM
Files
Mutter
GDM
Dock
A

A. SDDM (Simple Desktop Display Manager) is the default display manager for the KDE Plasma desktop environment. Therefore, option A is the correct answer. Files, also called GNOME files, is the file manager within the GNOME Shell desktop environment. Therefore, option B is a wrong answer. Mutter is the GNOME shell window manager, and thus option C is an incorrect answer. GDM stands for the GNOME Display Manager. Therefore, option D is a wrong choice. Dock is another name for the GNOME Shell Dash, which is the favorites bar within GNOME Shell. Thus, option E is also an incorrect choice.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which of the following is the KDE Plasma files manager?

Nautilus
Plasmoid
Dolphin
Kwin
Nemo
A

C. The KDE Plasma’s file manager is named Dolphin. Therefore, option C is the correct answer. Nautilus is the file manager on the Unity desktop environment, and therefore, option A is a wrong answer. Plasmoid is another name for a KDE Plasma widget. Thus, option B is an incorrect answer. Kwin is the KDE Plasma’s window manager, and therefore option D is a wrong choice. Nemo is the default file manager on the Cinnamon desktop environment. Thus, option E is an incorrect choice.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which of the following is true concerning the MATE desktop environment? (Choose all that apply.)

MATE is a GNOME Shell fork.
MATE uses Metacity as its window manager.
MATE's display manager is LightDM.
MATE's file manager is Caja.
MATE is no longer being developed.
A

C, D. MATE’s display manager is LightDM, and its file manager is Caja. Therefore, options C and D are correct answers. MATE was a fork of the GNOME 2 desktop environment and not GNOME Shell, so option A is a wrong answer. MATE uses a fork of Metacity, called Marco, as its window manager, so option B is also a wrong choice. At the time this book was being written, MATE was being actively developed, so option E is an incorrect choice.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which of the following describes the sound keys accessibility setting?

Sounds are made when the Caps Lock or Num Lock key is turned on or off.
A program that reads the GUI aloud, such as Orca.
A cursor blink rate modification to make it easier to locate the cursor on the screen.
Output to a refreshable braille display that is provided by the Orca screen reader.
The screen or a screen portion is amplified to different magnification levels.
A

A. The sound keys accessibility setting provides beeps whenever the Caps Lock or Num Lock key is turned on or off. Therefore, option A is the correct answer. A program that reads the GUI aloud, such as Orca, is a screen reader. Thus, option B is a wrong answer. The cursor blinking setting modifies the cursor blink rate to make it easier to locate the cursor on the screen. Therefore, option C is also an incorrect answer. Output to a refreshable braille display is provided by the Orca screen reader, which is a screen reader. Thus, option D is a wrong choice. Zoom settings allow the screen or a screen portion to be amplified to different magnification levels. Therefore, option E is also an incorrect choice.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A blind coworker who is programming on the Linux server is suddenly having odd problems with his braille display device. You determine that you need to restart the braille service. Assuming the appropriate systemd unit file is available, which command would you use?

systemctl restart braille
systemctl reload braille
systemctl restart brailled
systemctl restart brltty
systemctl reload brltty
A

D. The braille display device would be using the brltty service. The proper systemctl command to restart the services is in option D. Options A, B, and C all use incorrect names for the braille service. The command in option E would reload any modified brltty configuration files but not restart the service. Therefore, option E is also an incorrect choice.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which of the following best describes the slow keys accessibility setting?

A keyboard option that modifies how long a key must be pressed down to acknowledge the key
A keyboard option that sets keyboard modifier keys, such as Ctrl and Shift, to maintain their pressed status until a subsequent key is pressed
A keyboard option that modifies how long a key must be pressed down and that defines a delay to acknowledge the key repeat
A keyboard option that sets a primary key to be pressed along with a mouse click to emulate secondary mouse clicks
A keyboard option that displays a visual keyboard on the UI that can be manipulated by a mouse or other pointing device to emulate keystrokes
A

A. Slow keys are a keyboard option that modifies how long a key must be pressed down to acknowledge the key. Therefore, option A is the correct answer. Sticky keys are a keyboard option that sets keyboard modifier keys, such as Ctrl and Shift, to maintain their pressed status until a subsequent key is pressed. Thus, option B is a wrong answer. Repeat keys are a keyboard option that modifies how long a key must be pressed down and that defines a delay to acknowledge the key repeat. Therefore, option C is also a wrong choice. Simulated secondary click is actually a mouse option, and it sets a primary key to be pressed along with a mouse click to emulate secondary mouse clicks. Thus, option D is an incorrect answer. A screen keyboard is a keyboard option that displays a visual keyboard on the UI that can be manipulated by a mouse or other pointing device to emulate keystrokes. Therefore, option E is also an incorrect choice.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which of the following communicates with the Linux operating system to transmit the UI wants and needs?

Window manager
Display manager
Desktop environment
Windows server
Display server
A

E. The display server uses a communication protocol to transmit the desires of the UI to the operating system, and vice versa. Therefore, option E is the correct answer. A window manager is a program that communicates with the display server on behalf of the UI. Thus, option A is a wrong answer. A display manager controls the desktop environment’s login screen, where you choose a username and enter a password to gain system access. Therefore, option B is also a wrong choice. A desktop environment is a user environment that provides a predetermined look and feel to a GUI, but it does not transmit the desires of the UI to the operating system, so option C is a wrong answer. A window server is another name for a window manager, and thus, option D is also an incorrect answer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which of the following is true of a compositor? (Choose all that apply.)

A compositor arranges various display elements within a window to create a screen image.
Wayland is a compositor.
Mutter contains a compositor.
Kwin contains a compositor.
Weston is a compositor.
A

A, C, D, E. A compositor arranges various display elements within a window to create a screen image. Therefore, option A is a correct answer. Both Mutter and Kwin, even though their primary duty is as a window manager, also contain compositors. Thus, options C and D are correct answers too. Weston is a compositor for the Wayland display server, so option E is also a correct choice. Wayland is a display server and not a compositor. Thus, option B is the only wrong answer.

17
Q

Which of the following are true concerning Wayland? (Choose all that apply.)

Currently X11 is more secure than Wayland.
Wayland uses the $WAYLAND_DISPLAY environment variable.
Wayland's only compositor is Weston.
XWayland supports legacy X11 programs.
Set WaylandDisable to true to disable Wayland in GNOME Shell.
A

B, D. Wayland does use the $WAYLAND_DISPLAY environment variable, so option B is a correct answer. Also, XWayland supports legacy X11 programs. Therefore, option D is an additional correct answer. Wayland is a replacement for the X11 display server, and it is designed to be more secure. Thus, option A is a wrong answer. Wayland’s compositor is swappable and there are several other compositors besides Weston available for use with Wayland. Therefore, option C is a wrong choice. In order to disable Wayland in GNOME Shell, you edit the /etc/gdm3/custom.conf file and set WaylandEnable to false. Thus, option E is also an incorrect answer.

18
Q

Which of the following commands will help you determine whether your display server is Wayland or X11?

$WAYLAND_DISPLAY
echo $AccessX
loginctl
echo $X11
runlevel
A

C. The loginctl command will help you determine your current GUI session number. You can then use the loginctl command again along with your session number to determine if your GUI session is Wayland or X11. Thus, option C is the correct answer. While you can issue the command echo $WAYLAND_DISPLAY to help determine if your GUI session is Wayland or X11, $WAYLAND_DISPLAY by itself does nothing. Therefore, option A is a wrong answer. AccessX is a program that originally provided many universal access settings. There is no environment variable used by Wayland or X11 called $AccessX, and thus, option B is an incorrect answer. The $X11 environment variable is made up, so option D is a wrong choice. The runlevel command allows you to determine your system’s current run level and is not used in determining display servers. Therefore, option E is also an incorrect choice.

19
Q

You use the command gnome-shell –replace at the command line and receive an error message from the utility. What does this indicate?

The X11 display server is hung. You need to reboot the server.
The --replace option should be swapped for the -R option.
Your display server is Wayland.
XWayland is currently being used.
Wayland has been disabled for this session.
A

C. When your display server is Wayland, some commands, such as gnome-shell –replace, do not work in your GUI session. Therefore, option C is the correct answer. The scenario does not indicate that the X11 display server is hung. So please don’t reboot your server and know that option A is a wrong answer. The error message does not indicate that the -R option should be used instead. Thus, option B is an incorrect answer. If XWayland was being used, you would not receive an error message. Therefore, option D is also a wrong choice. If Wayland was disabled for the session, the command would not generate an error message. Thus, option E is an incorrect choice.

20
Q

Which of the following is true concerning X11? (Choose all that apply.)

XFree86 is the dominant X server.
X.Org foundation develops an X server.
The X server is being replaced by Wayland.
X11 means a user can have 11 sessions.
X is short for X Window System.
A

B, C, E. The X.Org foundation does develop an X server, called X11. The X server is being replaced by Wayland. X is short for X Window System, which is a display server. So options B, C, and E are correct. XFree86 was the dominant server implementing X until 2004. Now the dominant server is the X.Org foundation’s X11 server, so option A is a wrong answer. The X.Org’s server implements the X Window System version 11, and that is why it is sometimes called X11. It is not due to the number of graphical sessions a particular user can have. Therefore, option D is also an incorrect choice.

21
Q

Your system is running an X display server and a user’s graphical user interface is not acting properly. Which of the following commands can you use first to diagnose potential problems? (Choose all that apply.)

xwininfo
Xorg -configure
xcpyinfo
xdpyinfo
loginctl
A

A, D. The xwininfo and xdpyinfo commands provide information about the X server, including the different screen types available, the default communication parameter values, and protocol extension information as well as individual window information. These two utilities would be the best ones to start diagnosing the problem. Therefore, options A and D are correct answers. Xorg -configure creates a new X11 configuration file for your perusal, which may be useful later on in the troubleshooting process. However, this is not the best command to start diagnosis. Therefore, option B is a wrong answer. The xcpyinfo command is made up, making option C an incorrect answer. The loginctl command can help you determine whether or not the user is using X11 or Wayland, but since you already know that the X display server is running, issuing this command will not help. Thus, option E is an incorrect answer as well.

22
Q

Which of the following are remote desktops? (Choose all that apply.)

SPICE
NX
Xrdp
VNC
Caja
A

A, B, C, D. SPICE, NX, Xrdp, and VNC are all remote desktops. Therefore, options A, B, C, and D are correct answers. Caja is the file manager in the MATE desktop environment and not a remote desktop. Thus, option E is the only incorrect answer.

23
Q

Which of the following are remote desktops typically used with virtual machines? (Choose all that apply.)

SPICE
NX
Xrdp
VNC
All of the above
A

A, D. SPICE and VNC are the remote desktops, which are typically used with virtual machines. By default, VNC is used with KVM virtual machines. However, you can replace VNC with SPICE. Thus, options A and D are the correct answers. NX and Xrdp are not typically used with virtual machines, and thus, options B, C, and E are not correct answers.

24
Q

Which of the following protocols does Xrdp employ?

Remote Frame Buffer protocol
Wayland protocol
NX technology protocol
Simple protocol for ICEs
Remote Desktop Protocol
A

E. The Xrdp remote desktop software uses the Remote Desktop Protocol (RDP). Thus, option E is the correct answer. The Remote Frame Buffer (RFB) protocol is used by VNC. Thus, option A is a wrong answer. The Wayland protocol is used by the Wayland display server. Therefore, option B is also a wrong choice. Option C is also an incorrect answer, because the NX technology protocol is used by the NX remote desktop. The Simple protocol for ICEs, or Simple Protocol for Independent Computing Environments (SPICE), is used by the Spice remote desktop. Thus, option D is also an incorrect choice.

25
Q

You want to employ SSH port forwarding and use its local mode. Which ssh command switches should you employ? (Choose all that apply.)

-N
-X
-f
-R
-L
A

A, C, E. You need to indicate to the openSSH server that no terminal is required because you are only establishing a tunnel. Therefore, the -N switch is needed. The -f switch will send the openSSH tunnel into the background, freeing up your command-line interface so that you can type remote desktop commands. The local mode of the ssh command requires that you use the -L switch to specify the local system as well as the local and remote ports to be used. Therefore, options A, C, and E are correct. The -X switch is not used in SSH port forwarding, so option B is a wrong answer. The -R switch is used for remote mode SSH port forwarding. Therefore, option D is also an incorrect choice.

26
Q

You (username Samantha) are logged into a laptop (IP address 192.168.0.42) running a Linux GNOME Classic desktop environment at your company desk in Building A. A problem has occurred on a rack-mounted Linux system (IP address 192.168.0.7) in Building C. You need to securely access a GUI application on the remote system that uses X11. What command should you use?

ssh -Y Samantha@192.168.0.7
ssh -X Samantha@192.168.0.7
ssh -Y Samantha@192.168.0.42
ssh -X Samantha@192.168.0.42
ssh -L Samantha@192.168.0.42
A

B. You need to employ X11 forwarding. To properly and securely access the remote Linux system and run an X11-based application, the command in option B is the best choice. The command in option A uses the trusted X11 via the -Y switch, which is not secure. Therefore, option A is a wrong answer. The command in option C also uses the -Y switch, so option C is also an incorrect answer. The command in option D uses the correct command switch but sends the connection to the laptop instead of the rack-mounted Linux server. Thus, option D is a wrong answer. The command in option E is using the -L switch, which is for local SSH port forwarding, and it uses the wrong syntax for that switch and attempts to send the connection to the laptop. Thus, option E is a very incorrect answer.

27
Q
A