LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 3388|回复: 3

xhost问题,unable to open display "192.163.3.153:0.0"

[复制链接]
发表于 2006-1-19 18:31:52 | 显示全部楼层 |阅读模式
我在本机运行firefox,提示我:
Gtk-WARNING **:cannot open display。
于是我:
xhost +
结果提示我xhost:  unable to open display "192.168.3.153:0.0"

这是在livecd环境中的问题,在制作livecd的那台机器上都能正常运行。
xwindows 是inittab 中init 5启动的,ip也没有错。


而且我在livecd环境中,启动任何有图形界面的软件都不行,如openoffice,firefox,thunderbird等
请问这是什么原因,如何解决呢? 谢谢大家,我发了好几个论坛都没人帮我解决,希望这里的朋友能帮帮我!
发表于 2006-1-19 23:18:58 | 显示全部楼层
看来不象xhost 的问题,看似/etc/X11/XF86Config-4 或/etc/X11/xorg.conf 没有配置好
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-20 13:53:28 | 显示全部楼层
我的xorg.conf配置如下:


# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# RgbPath is the location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        ModulePath   "/usr/X11R6/lib/modules"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc:unscaled"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi"
        FontPath     "/usr/X11R6/lib/X11/fonts/Speedo"
        FontPath     "/usr/X11R6/lib/X11/fonts/OTF"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1"
        FontPath     "/usr/X11R6/lib/X11/fonts/util"
# Additional fonts: Locale, Gimp, TTF...
        FontPath     "/usr/X11R6/lib/X11/fonts/local"
        FontPath     "/usr/X11R6/lib/X11/fonts/encodings"
        FontPath     "/usr/X11R6/lib/X11/fonts/TTF"
        FontPath     "/usr/X11R6/lib/X11/fonts/cyrillic"
        FontPath     "/usr/X11R6/lib/X11/fonts/CID"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
        FontPath     "/usr/share/fonts/"
        FontPath     "/usr/share/fonts/bitstream-vera"
        FontPath     "/usr/share/fonts/bitmap-fonts"
        FontPath     "/usr/share/fonts/arabic"
        FontPath     "/usr/share/fonts/bengali"
#        FontPath     "/usr/share/fonts/wangnew"
        FontPath     "/usr/share/fonts/KOI8-R"
        FontPath     "/usr/share/fonts/KOI8-R/100dpi"
        FontPath     "/usr/share/fonts/KOI8-R/75dpi"
        FontPath     "/usr/share/fonts/KOI8-R/misc"
        FontPath     "/usr/share/fonts/ISO8859-2"
        FontPath     "/usr/share/fonts/ISO8859-2/100dpi"
        FontPath     "/usr/share/fonts/ISO8859-2/75dpi"
        FontPath     "/usr/share/fonts/ISO8859-2/misc"
        FontPath     "/usr/share/fonts/ja"
        FontPath     "/usr/share/fonts/ja/misc"
        FontPath     "/usr/share/fonts/ja/TrueType"
        FontPath     "/usr/share/fonts/hebrew"
        FontPath     "/usr/share/fonts/default/ghostscript"
#       FontPath     "ts/default/Type1"
        FontPath     "/usr/share/fonts/bitmap-fonts"
        FontPath     "/usr/share/fonts/afms/adobe"
        FontPath     "/usr/share/fonts/zh_TW"
        FontPath     "/usr/share/fonts/zh_CN"
        FontPath     "/usr/share/fonts/zh_TW/TrueType"
        FontPath     "/usr/share/fonts/zh_CN/TrueType"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load  "dri"
EndSection
Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#       Option  "Xleds"         "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
#       Option  "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#       Option  "XkbModel"      "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#       Option  "XkbModel"      "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#       Option  "XkbLayout"     "de"
# or:
#       Option  "XkbLayout"     "de"

#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#       Option  "XkbOptions"    "ctrl:swapcaps"
# Or if you just want both to be control, use:
#       Option  "XkbOptions"    "ctrl:nocaps"
#
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" ""
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "rotocol" "IMPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5"
# No 2 -> 3 Button emulationButtons" "yes"
EndSection
# Auto-generated by KNOPPIX mkxf86config

Section "Monitor"
        Identifier      "Monitor0"
        Option  "DPMS"  "true"
        VendorName      "LCS"
        ModelName       "LCSa700"
        HorizSync 30 - 70 # DDC-probed
        VertRefresh  50.0 - 75.0 # Very conservative. May flicker.
#       VertRefresh  50.0 - 62.0 # Extreme conservative. Will flicker. TFT default.
        # These are the DDC-probed settings reported by your monitor.
        # 1024x768, 85.0Hz; hfreq=68.68, vfreq=85.00
        ModeLine "1024x768"      94.50 1024 1072 1168 1376  768  769  772  808 +hsync +vsync
        # 1024x768, 75.0Hz; hfreq=60.02, vfreq=75.03
        ModeLine "1024x768"      78.75 1024 1040 1136 1312  768  769  772  800 +hsync +vsync
        # 800x600, 85.0Hz; hfreq=53.67, vfreq=85.06
        ModeLine "800x600"       56.25  800  832  896 1048  600  601  604  631 +hsync +vsync
        # 800x600, 75.0Hz; hfreq=46.88, vfreq=75.00
        ModeLine "800x600"       49.50  800  816  896 1056  600  601  604  625 +hsync +vsync
        # 800x600, 60.0Hz; hfreq=37.88, vfreq=60.32
        ModeLine "800x600"       40.00  800  840  968 1056  600  601  605  628 +hsync +vsync
        # 640x480, 85.0Hz; hfreq=43.27, vfreq=85.01
        ModeLine "640x480"       36.00  640  696  752  832  480  481  484  509 -hsync -vsync
        # 640x480, 75.0Hz; hfreq=37.50, vfreq=75.00
        ModeLine "640x480"       31.50  640  656  720  840  480  481  484  500 -hsync -vsync
        # 640x480, 60.0Hz; hfreq=31.47, vfreq=59.94
        ModeLine "640x480"       25.17  640  648  744  784  480  482  484  509 -hsync -vsync
        # Extended modelines with GTF timings
        # 640x480 @ 100.00 Hz (GTF) hsync: 50.90 kHz; pclk: 43.16 MHz
        ModeLine "640x480"  43.16  640 680 744 848  480 481 484 509  -HSync +Vsync
        # 768x576 @ 60.00 Hz (GTF) hsync: 35.82 kHz; pclk: 34.96 MHz
        ModeLine "768x576"  34.96  768 792 872 976  576 577 580 597  -HSync +Vsync
        。。。。
        。。。。(这里内容太多了,都差不多,就不copy到这里了)
Section "Device"
        ### Available Driver options are:-
# sw_cursor is needed for some ati and radeon cards
        #Option     "sw_cursor"
        #Option     "hw_cursor"
        #Option     "NoAccel"
        #Option     "ShowCache"
        #Option     "ShadowFB"
        #Option     "UseFBDev"
        #Option     "Rotate"
        Identifier  "Card0"
# The following line is auto-generated by KNOPPIX mkxf86config
        Driver      "vesa"
        VendorName  "All"
        BoardName   "All"
#       BusID       "CI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
        Group        0
        Mode         0666
EndSection


我看不出什么问题阿,谢谢了阿~~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-20 14:47:37 | 显示全部楼层
问题解决了,从新登陆系统就都好用了,怪。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表