Black Screen While Starting X window

My friend is new to Linux, everything was fine until he made some changes to X, which result into this problem. Now whenever he types command startx to start X he get a blank screen. Finally, he contacted me me via yahoo and asked me to get rid rid of this problem.

ADVERTISEMENTS

Step # 1: Reset blank X screen

First, get out of Blank screen by pressing combination of keys Ctrl+Alt+Backspace. If this fails, reboot system.

Step # 2: Reconfigure X server display

At shell, prompt type the following command to reconfigure X display.

If you are using Red Hat /Fedora / CentOS Linux type command:
# redhat-config-xfree86
If you are using Debian Linux type command:
# dpkg-reconfigure xserver-xfree86
OR login as the root user and type command:
# XFree86 -configure

Step # 3: Test new setup

Type startx to test your new settings:
# startx
OR if you used XFree86 –configure command to reconfigure X, then test it with following command:
# XFree86 -xf86config /etc/X11/XF86Config.new

See also:

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source & DevOps topics via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
5 comments… add one
  • Ej dangat Oct 20, 2011 @ 4:00

    ”At shell, prompt type the following command to reconfigure X display”
    where is this shell located? i dont understand please reply

  • oluwatudimu michael Jul 24, 2012 @ 10:35

    with all what that was written here will it solve the problem to the computer

  • Eric Berlin Apr 24, 2013 @ 20:31

    A solution I found when upgrading Ubuntu broke my X server was to install xserver-xorg-video-all. For some reason, my fglrx driver quit working. My X server started and the monitor turned off (after some attempts to keep it from crashing at startup). After installing all the video drivers and rebooting, everything was all better.

  • Simon Jul 15, 2013 @ 8:23

    Thanks a lot!!!

  • Matias Colli Jan 31, 2014 @ 17:47

    Another solution is:
    # dpkg-reconfigure xserver-xorg
    __
    Matias Colli
    Perito Informático Forense
    M.N A-128 COPITEC

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.