从Redhat 6.0和Ubuntu 9.0以后xorg.conf这个老古董文件突然不见了,让很多DIY爱好者不知所踪,但你man xorg.conf时却
能得到xorg.conf的帮助信息,为什么呢?官方解释是:The reason for this is that the configuration to be done on user
level. OK那么就是说这件事要用户自己去做,很多高手会说这个简单用Xorg -configure这个命令就可以生成,但事,可但是那是在
TEXT界面,但大部分用户在Graphic界面,那么我们要怎么做呢?切控制台肯定是不可以的,所以我们使用init 3这个命令就可以在
Graphic mode直接切到TEXT mode,用init 5就可以切回来.恩,那么就没有障碍了,写如下script:
init 3
sleep 3
Xorg -configure
sleep 3
mv xorg.conf.new /etc/X11/xorg.conf
sleep 1
init 5