Linux LPI 117-101 # Bonus

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Tobyyy
T
Tobyyy
Community Contributor
Quizzes Created: 10 | Total Attempts: 1,454
| Attempts: 96
SettingsSettings
Please wait...
  • 1/12 Questions

    What environment variable will remote X application check to see which X server itshould send output to?

Please wait...
About This Quiz

This Linux LPI 117-101 # Bonus quiz assesses knowledge on X server configuration, focusing on environment variables, remote access, and security. It is ideal for system administrators and IT professionals looking to validate their skills in managing X server environments.

Linux LPI 117-101 # Bonus - Quiz

Quiz Preview

  • 2. 

    What environment variable is used to remotely display another machines X sessionon yours?

    • DISPLAY

    • XSESSION

    • SCREEN

    • TTY

    • None of the above

    Correct Answer
    A. DISPLAY
    Explanation
    The DISPLAY consists of a hostname, a colon, and a sequence number. For example localhost:0

    Rate this question:

  • 3. 

    You are running X in networked environment. You want to allow anyone on yournetwork to display their X applications on your desktop. What command can youuse to disable all access control for X?

    Correct Answer
    xhost -
    Explanation
    xhost - the server access control program for X. The xhost program is
    used to add and delete host (computer) names or user names to the list of machines
    and users that are allowed to make connections to the X server. This provides a
    rudimentary form of privacy control and security.

    Rate this question:

  • 4. 

    You wish to enable remote X access for the hosts: Host1, Host2 and Host3.Type in the command and any needed arguments to do this.

    Correct Answer
    xhost +Host1 Host2 Host3
    Explanation
    1. xhost + hostname: Adds hostname to X server access control list.
    2. xhost - hostname: Removes hostname from X server access control list.
    3. xhost + : Turns off acccess control (all remote hosts will have access to X server)
    4. xhost - : Turns access control back on.

    Rate this question:

  • 5. 

    You are the system administrator for an X server, and experience attempts toinitiate an unathorized session from host21. What command with options andarguments would deny access only to host21 for X sessions?

    Correct Answer
    xhost -host21
    Explanation
    1. xhost + hostname: Adds hostname to X server access control list.
    2. xhost - hostname: Removes hostname from X server access control list.

    3. xhost + : Turns off acccess control (all remote hosts will have access to X server)
    4. xhost - : Turns access control back on.

    Rate this question:

  • 6. 

    What is the function of the .Xdefaults file?

    • Provides the defaults for new users X programs

    • A default user X profile, used as a template

    • User customizations for programs

    • KDE default user configuration file

    Correct Answer
    A. User customizations for programs
    Explanation
    You can use this file to change the way some of your X-window
    applications look. It's fun to try out different styles and get some settings that please
    your eye. Before you try to do this however, make a backup.

    Rate this question:

  • 7. 

    Which of the following is the default XFree86 configuration file?

    • /usr/X11R6/etc/XF86Config

    • /var/X11/XF86Config

    • /etc/X11/XF86Config

    • /usr/etc/X11/XF86Config

    Correct Answer
    A. /etc/X11/XF86Config
    Explanation
    When you configure the Vide card, monitor type, resolution using
    xf86config command, all information stores in /etc/X11/XF86Config file and when
    Linux start GUI reads the information from this file.

    Rate this question:

  • 8. 

    Your senior administrator asked you to change the defaultbackground of his machine, which uses XDM. Which file would you editto achieve this?

    • /etc/X11/xdm/Xsetup

    • /etc/X11/xdift.conf

    • /etc/X11/xdm/Defaults

    • /etc/X11/defaults.conf

    Correct Answer
    A. /etc/X11/xdm/Xsetup
    Explanation
    To change the default background of a machine that uses XDM, the file that needs to be edited is "/etc/X11/xdm/Xsetup". This file contains the commands that are executed when the X Display Manager (XDM) starts up. By editing this file, you can specify the desired background image or color for the machine.

    Rate this question:

  • 9. 

    You just started X for the first time and noticed that the display doesnot use the entire screen. What program can you use to fix this?

    • Xvidtune

    • Xf86config

    • XF86Setup

    • Tweakscreen

    Correct Answer
    A. Xf86config
    Explanation
    When you configure the Vide card, monitor type, resolution using
    xf86config command, all information stores in /etc/X11/XF86Config file and when
    Linux start GUI reads the information from this file.

    Rate this question:

  • 10. 

    Which of the following commands will print the current videosettings to stdout in xf86Config "Modeline " format?

    • xinfo -mode

    • Xset -info

    • Xf86config -list

    • Xvidtune -show

    Correct Answer
    A. Xvidtune -show
    Explanation
    xvidtune [ -show | -prev | -next | -unlock ] [ -toolkitoption ... ]
    Show - Print the currently selected settings to stdout in xorg.conf "Modeline" format. The
    primary selection is similarly set.

    Rate this question:

  • 11. 

    You are using an application that you want to appear on the screen of anothermachine. What environment variable would you have to set or edit to achieve this?

    • DISPLAY

    • REMOTE

    • REMOTE_XWINDOW

    • SCREEN

    Correct Answer
    A. DISPLAY
    Explanation
    To share the terminal between multiple hosts, we can export display.
    Example
    Suppose you want to run application on Certkiller B from Certkiller A.
    Certkiller B in GUI Terminal:# xhost +192.168.0.1
    Certkiller A in GUI Terminal:# export DISPLAY=192.168.0.2:0
    # xterm

    Rate this question:

  • 12. 

    Your Linux machine is set to boot to the graphical runlevel. You have updated someRPMs on your system and now you don't see video when the system boots. Whatline should you add/modify to the /etc/inittab file to boot in console mode?

    Correct Answer
    x:5:respawn:/etc/X11/prefdm -nodaemon
    Explanation
    It specifies that x windows system should run on runlevel 5 as a nondaemon.

    Rate this question:

Quiz Review Timeline (Updated): Nov 20, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Nov 20, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Feb 19, 2009
    Quiz Created by
    Tobyyy
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.