Source http://blog.csdn.net/bat603
Author prophet
This article can be reproduced at will, but the source must be retained.
This article is just a solution to the specific problem, mainly by throwing bricks and leading bricks.
This time I felt the weakness of Linux, Or I realized that everything in Linux is implemented by files. Maybe I installed some font software packages before the system restarts, or it may be because I did not close the program and executed the reboot command. I am not sure, so I need to find the reason later.
In short, the system cannot enter X-window, and the prompt message is: cocould not open default font 'fixed '. You have searched for many methods on the Internet, such:
1.
Reconfiguration
Deleted Xorg. conf
Apt-Get -- purge remove xserver-Xorg
Then
Apt-Get install xserver-Xorg
2.
Dpkg-reconfigure does not work either.
For more information about the functions of the preceding commands, visit the internet.
My solution:
The configuration file for X-window is in/etc/X11/Xorg. conf, I am a newbie and do not know the detailed configuration information, so I deleted it (remember to back up, Because I neglected to delete it before I remembered the backup, thanks to the fact that I could eventually start X-window, otherwise it will be painful ).
A. rm-F/etc/X11/Xorg. conf
Generate the default X-window configuration file named Xorg. conf. New
B. Xorg-configure
C. CP Xorg. conf. New/etc/X11/Xorg. conf
D. starx (most cannot be started, mainly because the error message is read)
The error message is displayed in the/var/log/xorg.0.log file. The error message is
(Ee) xf860penserial: cannot open device/dev/mouse
No such file or directory
(Ee) mouse0: cannot open Input Device
(Ee) preinit failed for input device "mouse0"
No core pointer
We can see that the cause of the error is the mouse problem.
E. Find/-name "mouse *"
Location of the mouse driver/dev/input/mouse0 found
F. VI/etc/X11/Xorg. conf
See
Section "inputdevice"
Identifier "mouse0"
Driver "Mouse"
Option "protocol" "Auto"
Option "device" "/dev/mouse"
Option "zaxismapping" "4 5 6 7"
Endsection
The problem was found, and it was a problem with the mouse drive position.
Section "inputdevice"
Identifier "mouse0"
Driver "Mouse"
Option "protocol" "Auto"
Option "device" "/dev/input/mouse0"
Option "zaxismapping" "4 5 6 7"
Endsection
G. startx
Successful! The cute X-window appears. Of course, you need to set the resolution of the display settings you want.
Then, log out.