Fatal server error: Server is already active for display 0

Source: Internet
Author: User

Fedora is completely normal during startup and there are no error messages. But it will go to the character interface logon prompt, instead of the X Window logon interface.

An error occurred while starting X Window using the startx command. The prompt is as follows:

Fatal server error:

Server is already active for display 0

If this server is no longer running, remove/tmp/. X0-lock and start again

Troubleshooting process:

1. Check whether only one X server is running.

The number denotes the display number (in this case 0 ). this number needs to be unique on the system, so you cannot run two servers on one system with identical display numbers. this message indicates that there is already a server with this number running
On the system.

Check Method:

You can verify this by running

PS aux | grep 'cat/tmp/. X0-lock'

If a similar output exists, it indicates that an xserver is running.

If you see an output like:

Root 2283 0.5 5.1 27796 6536? S apr21 59: 03 [x]

It indicates that there is indeed an xserver running under this PID.

Solution:

To start a second server on the same system you have to give it a different dislay number.

If you start your servers using startx you can do:

Startx --: 1

To start a server with display number 1.

2. No xserver is running, delete the tmp/. X0-lock file, and then startx

If you are sure there is no other server running on your system and above ps command indicates that no server with this PID is running, you shoshould remove the file/tmp /. x0-lock by doing (as 'root '):

Rm-RF/tmp/. X0-lock

You must use the root permission to delete the object.-F indicates that the object is forcibly deleted.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.