在debian中轻松升级到xorg 7.0

歡迎提問 debian desktop 相關問題,何謂 desktop ? 舉凡您日常生活會用到的部份,如上網 ( www 、 bbs ..) 、程式設計、繪圖...等等。 通常以 X Window 環境底下問題為主。

在debian中轻松升级到xorg 7.0

文章chinajz » 週日 4月 16, 2006 11:27 am

在debian中轻松升级到xorg 7.0

chinajz
c_xvidtune@hotmail.com
http://spaces.msn.com/chinajz/


在debian中从XFree86升级到xorg以前一直很顺利,这次遇到了麻烦,减少了我晚上两个小时睡眠时间,找到了安装方法:)。
这是因为当前debian中sid版的xorg升级到了7.0.11,如果你想从stable或sarge升级sid,X启动不起来了。但是xorg没有错,尽管才开始我以为是bug。
1.检查你已经安装的xorg版本
代碼: 選擇全部
debian:~# dpkg -s xserver-xorg
Package: xserver-xorg
Status: install ok installed
Priority: optional
Section: x11
Installed-Size: 464
Maintainer: Debian X Strike Force
Architecture: all
Source: xorg
Version: 1:7.0.11
Replaces: xserver-common
Depends: xserver-xorg-core, xserver-xorg-video-all | xserver-xorg-video, xserver-xorg-input-all | xserver-xorg-input, laptop-detect, xresprobe, mdetect, discover1, debconf, xkb-data |
xkb-data-legacy, xbase-clients
Pre-Depends: x11-common (>= 7.0.0-0ubuntu3)
Conflicts: xserver-xfree86 (<< 6.8.2.dfsg.1-1), xserver-common
Description: the X.Org X server
This package depends on the full suite of the server and drivers for the X.Org X server, as well as providing a configuration infrastructure to manage xorg.conf. It does not provide the actual server itself, but removing it is strongly discouraged.

2.由于在debian中安装xorg7.0时说明文档少,如果你不知道要安装的包,会让人折腾,浪费时间。如:起动X时提示找不到xkb,mouse,或synaptics
只要安装这些包就行了,而且debian都做好这些包了:
代碼: 選擇全部
apt-get install xserver-xorg-input-kbd xserver-xorg-input-mouse
xserver-xorg-input-synaptics

3.如果你出现其它的提示,要找对应的包安装
代碼: 選擇全部
debian:~# apt-cache search xserver-xorg
xfree86-driver-synaptics - dummy package to upgrade to X.Org new modular packages
xserver-xfree86 - transitional package for moving from xfree86 to X.Org
xserver-xorg - the X.Org X server
xserver-xorg-core - X.Org X server -- core server
xserver-xorg-dbg - debugging symbols for the X.Org X server
xserver-xorg-dev - X.Org X server -- development files
xserver-xorg-input-acecad - X.Org X server -- AceCad input driver
xserver-xorg-input-aiptek - X.Org X server -- Aiptek input driver
xserver-xorg-input-all - the X.Org X server -- input driver metapackage
xserver-xorg-input-calcomp - X.Org X server -- Calcomp input driver
xserver-xorg-input-citron - X.Org X server -- Citron input driver
xserver-xorg-input-digitaledge - X.Org X server -- DigitalEdge input driver
xserver-xorg-input-dmc - X.Org X server -- DMC input driver
xserver-xorg-input-dynapro - X.Org X server -- Dynapro input driver
xserver-xorg-input-elo2300 - X.Org X server -- ELO2300 input driver
xserver-xorg-input-elographics - X.Org X server -- ELOGraphics input driver
xserver-xorg-input-evdev - X.Org X server -- evdev input driver
xserver-xorg-input-fpit - X.Org X server -- FPIT input driver
xserver-xorg-input-hyperpen - X.Org X server -- HyperPen input driver
xserver-xorg-input-jamstudio - X.Org X server -- JamStudio input driver
xserver-xorg-input-joystick - X.Org X server -- joystick input driver
xserver-xorg-input-kbd - X.Org X server -- keyboard input driver
xserver-xorg-input-magellan - X.Org X server -- Magellan input driver
xserver-xorg-input-magictouch - X.Org X server -- MagicTouch input driver
xserver-xorg-input-microtouch - X.Org X server -- MicroTouch input driver
xserver-xorg-input-mouse - X.Org X server -- mouse input driver
xserver-xorg-input-mutouch - X.Org X server -- muTouch input driver
xserver-xorg-input-palmax - X.Org X server -- Palmax input driver
xserver-xorg-input-penmount - X.Org X server -- Penmount input driver
xserver-xorg-input-spaceorb - X.Org X server -- SpaceOrb input driver
xserver-xorg-input-summa - X.Org X server -- Summa input driver
xserver-xorg-input-synaptics - Synaptics TouchPad driver for X.Org/XFree86 server
xserver-xorg-input-tek4957 - X.Org X server -- Tek4957 input driver
xserver-xorg-input-ur98 - X.Org X server -- UR98 input driver
xserver-xorg-input-void - X.Org X server -- void input driver
xserver-xorg-video-all - the X.Org X server -- output driver metapackage
xserver-xorg-video-apm - X.Org X server -- APM display driver
xserver-xorg-video-ark - X.Org X server -- ark display driver
xserver-xorg-video-ati - X.Org X server -- ATI display driver
xserver-xorg-video-chips - X.Org X server -- Chips display driver
xserver-xorg-video-cirrus - X.Org X server -- Cirrus display driver
xserver-xorg-video-cyrix - X.Org X server -- Cyrix display driver
xserver-xorg-video-dummy - X.Org X server -- dummy display driver
xserver-xorg-video-fbdev - X.Org X server -- fbdev display driver
xserver-xorg-video-glint - X.Org X server -- Glint display driver
xserver-xorg-video-i128 - X.Org X server -- i128 display driver
xserver-xorg-video-i740 - X.Org X server -- i740 display driver
xserver-xorg-video-i810 - X.Org X server -- Intel i8xx, i9xx display driver
xserver-xorg-video-imstt - X.Org X server -- IMSTT display driver
xserver-xorg-video-mga - X.Org X server -- MGA display driver
xserver-xorg-video-neomagic - X.Org X server -- Neomagic display driver
xserver-xorg-video-newport - X.Org X server -- Newport display driver
xserver-xorg-video-nsc - X.Org X server -- NSC display driver
xserver-xorg-video-nv - X.Org X server -- NV display driver
xserver-xorg-video-rendition - X.Org X server -- Rendition display driver
xserver-xorg-video-s3 - X.Org X server -- legacy S3 display driver
xserver-xorg-video-s3virge - X.Org X server -- S3 ViRGE display driver
xserver-xorg-video-savage - X.Org X server -- Savage display driver
xserver-xorg-video-siliconmotion - X.Org X server -- SiliconMotion display driver
xserver-xorg-video-sis - X.Org X server -- SiS display driver
xserver-xorg-video-sisusb - X.Org X server -- SiS USB display driver
xserver-xorg-video-tdfx - X.Org X server -- tdfx display driver
xserver-xorg-video-tga - X.Org X server -- TGA display driver
xserver-xorg-video-trident - X.Org X server -- Trident display driver
xserver-xorg-video-tseng - X.Org X server -- Tseng display driver
xserver-xorg-video-vesa - X.Org X server -- VESA display driver
xserver-xorg-video-vga - X.Org X server -- VGA display driver
xserver-xorg-video-via - X.Org X server -- VIA display driver
xserver-xorg-video-vmware - X.Org X server -- VMware display driver
xserver-xorg-video-voodoo - X.Org X server -- Voodoo display driver
nvidia-glx - NVIDIA binary XFree86 4.x driver
[/code]
相识是缘
chinajz
可愛的小學生
可愛的小學生
 
文章: 20
註冊時間: 週四 3月 24, 2005 12:37 am
來自: 江苏,盐城

文章訪客 » 週日 4月 16, 2006 12:52 pm

真是非常感謝您呀

昨天不小心升級到7.0之後,我一直進不了X
我原本以為是xorg.conf設定錯誤
但是卻又一直找不到xorgconfig指令來重新設定
後來花了不少時間還是退回到6.9版,真是挫折

唉...
如果早點看到這篇,就不用花那麼多時間了
訪客
 

文章chinajz » 週日 4月 16, 2006 1:45 pm


dpkg-reconfigure xserver-xorg
可以设定/etc/X11/xorg.conf
相识是缘
chinajz
可愛的小學生
可愛的小學生
 
文章: 20
註冊時間: 週四 3月 24, 2005 12:37 am
來自: 江苏,盐城

文章訪客 » 週日 4月 16, 2006 9:39 pm

感謝chinajz先生
dpkg-reconfigure xserver-xorg 真的可以用~

不過
能否再請教一個問題
我在重新設定xorg.conf之後
無法用Ctrl+Alt+Fx來切換到虛擬工作台
我甚至在xorg.conf下面擅加了一段設定

Section "ServerFlags"
Option "DontVTSwitch" "false"
EndSection

但結果仍是相同
請問要怎麼設才能用呢?
謝謝
訪客
 

文章訪客 » 週日 4月 16, 2006 9:58 pm

请贴上你的/etc/inittab看看。
訪客
 

文章chinajz » 週一 4月 17, 2006 8:46 am

如果你用的是xserver-xorg,请你检查是否安装了xserver-xorg-input-kbd,xkb-data,xserver-xorg-input-all等软件;
如果你用的是xserver-xfree86也请检查与其相关的软件
相识是缘
chinajz
可愛的小學生
可愛的小學生
 
文章: 20
註冊時間: 週四 3月 24, 2005 12:37 am
來自: 江苏,盐城

文章訪客 » 週一 4月 17, 2006 8:48 pm

chinajz先生:
不好意思
我用的是Xorg 6.9.0耶
所以應和xserver-xorg-input-kbd,xkb-data,xserver-xorg-input-all無關
我是用dpkg-reconfigure xserver-xorg生出了一個新的xorg.conf後才不能用的
所以應該是xorg.conf的問題

to訪客兄:
inittab如下,謝謝

# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

# The default runlevel.
id:3:initdefault:

# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS

# What to do in single-user mode.
~~:S:wait:/sbin/sulogin

# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

# Action on special keypress (ALT-UpArrow).
#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

# What to do when the power fails/returns.
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop

# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
# <id>:<runlevels>:<action>:<process>
#
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:2345:respawn:/sbin/mingetty --autologin winlin tty3
#4:23:respawn:/sbin/getty 38400 tty4
#5:23:respawn:/sbin/getty 38400 tty5
#6:23:respawn:/sbin/getty 38400 tty6

# Example how to put a getty on a serial line (for a terminal)
#
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

# Example how to put a getty on a modem line.
#
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3

#-- isdnutils begin
# Change the line below for your local requirements and uncomment them.
# Use "init q" to reread inittab.
# look at the mgetty manpage for more information (mgetty isn't standard!)
#
#I0:2345:respawn:/sbin/mgetty -D -m '"" ATZ OK AT&Eyourmsnhere OK AT&B512 OK' -s 38400 ttyI0
#-- isdnutils end
訪客
 

文章chinajz » 週二 4月 18, 2006 11:21 am

启动时,不启动xdm或gdm,如果在text模式下能切换到不同控制台,说明inittab设置没问题。
建议你参照xorg 7.0方法安装相关软件来排除,检查xserver-xorg 关联软件是否安装。
我电脑未出现过这问题,要是出现过就能很快告诉你了。
相识是缘
chinajz
可愛的小學生
可愛的小學生
 
文章: 20
註冊時間: 週四 3月 24, 2005 12:37 am
來自: 江苏,盐城


回到 debian desktop

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客