How to restore xorg. conf from cainiao

Source: Internet
Author: User
Cainiao's method for restoring xorg. conf-general Linux technology-Linux technology and application information. For details, see the following. My own experience. I have just been studying LINUX for more than two weeks because I have learned a lot from others' posts and want to contribute a little bit.

In RFlinux6, because I want to try a 3D desktop (it has not been successful yet... -_-B). In this case, the "screen color" in the display configuration is changed from 24 to 16 colors. As a result, at the beginning of the nightmare, the graphic interface could no longer be entered. It's always a dark terminal. After startx, the returned information probably means that the default color is 16 bits (I didn't want it to be the default one, I just want to try it). The driver is not supported, so there is no suitable display settings, so it cannot be loaded and so on.

I tried to use man ed and man vi for a long time, but I still don't know how to change xorg. conf. Reinstalling the system seems too difficult. I suddenly thought that the downloaded CD file was in my computer, so I first decompressed the iso file with RAR under XP (not in linux ...), Find the xorg. conf-0.1-3.i386.rpm file and put it in the note directory. I put it in the root directory of drive D.

Next, go to the dark LINUX, and perform the following operations:
# Cd/mnt/sda5 (enter disk D in linux)
# Ls (ensure correct, ls to see the content of the current location, should see list xorg. conf-0.1-3.i386.rpm file)
# Cp xorg. conf-0.1-3.i386.rpm/root (copy the file to the root directory here, I think it is safer to run the installation on the linux local hard disk... I don't know if this is necessary. I also hate entering long file names, so press the tab key directly after entering x. As long as this is the only file starting with x in the current folder, the name is automatically entered. If it is not the only one, it will be transferred to the unique tab, which saves a lot of effort .)
# Cd/root (return to the root directory)
# Rpm-I xorg. conf-0.1-3.i386.rpm -- force (force install this file, for the first time I didn't use force install, the system returns a prompt that this package has been installed ...)

Startx is successful when the prompt appears again! The graphic interface has been back for a long time @_@
After that, I re-installed the graphics card driver to restore the previous effect.

Because you don't understand, cainiao is more likely to make the system unexpected when you know nothing about it. The xorg. conf file is not good, and the situation is quite serious. It can only be restored through command lines. This is scary for people who are familiar with graphic interfaces like me. However, since we chose linux, we had to pay for it, but it was just a little diligent and changed a little bit of habits.
In the past, when I saw the command line, I couldn't get into my mind. in linux, I could also right-click to install it. It is true that x cannot be used to read the Command carefully. A pen and a notebook, first written down and then practiced, found that it is actually easier than imagined. Anyway, Rome was not built in one day. I want to learn a little bit every day, so I don't have to worry about it. I can use common commands to feel more charm of linux.
I hope that, like me, all cainiao who learn linux can stick to it. The sky is higher and the sky is higher. : 0wpoi2
Related Article

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.