Why I can't use 'startx' command to start X Server on RHEL7 with "X window system" package group?

Solution Verified - Updated -

Issue

  • Can't start the X server using the startx command, while the basic xinit command works.
  • The server is running RHEL7, installed as a minimal server, only the core and "X window system" package group plus xterm are installed. But when try to run startx command, it fails with following error:

    xinit: connection to X server lost
    
    waiting for X server to shut down (EE) Server terminated successfully (0). 
    Closing log file.
    
  • xinit command without any options starts fine, but startx with the default RHEL7 system xinitrc script fails. What is causing this problem?

Environment

  • Red Hat Enterprise Linux 7
  • xorg-x11-xinit-1.3.2-14.el7.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content