由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - 俺土俺知道
相关主题
Help, x server problem小心发问 声音问题
问个问题,关于X11 display中國企業沒有人真正有戰略眼光的
install matlabThinkpad的built in microphone有人在ubuntu下搞定了吗?
在线升级ubuntu 11.10中...VirtualBox没有声音?
Lubuntu循环陷在登录页面出不来了ubuntu的声音很小
声卡问题请教苹果难道不是已经往Linux里渗透了?
10 reasons why Linux will triumph over Windowsubuntu pulseaudio FAQ
Anyone using gigolo?继续批评 gentoo
相关话题的讨论汇总
话题: debug2话题: display话题: xauth话题: snd话题: warning
进入Linux版参与讨论
1 (共1页)
b*****l
发帖数: 9499
1
为啥这个服务器设完了 gnome 后,putty 过去,没有 DISPLAY 呢?。。。
六年前貌似也出过这个问题,一直没搞明白,不了了之了,后来。。。
E*V
发帖数: 17544
2
安装nomachine
别折腾 X

【在 b*****l 的大作中提到】
: 为啥这个服务器设完了 gnome 后,putty 过去,没有 DISPLAY 呢?。。。
: 六年前貌似也出过这个问题,一直没搞明白,不了了之了,后来。。。

b*****l
发帖数: 9499
3
是有个软件需要 X。

【在 E*V 的大作中提到】
: 安装nomachine
: 别折腾 X

E*V
发帖数: 17544
4
tell me if this link helps
http://www.linuxquestions.org/questions/slackware-14/xterm-erro

【在 b*****l 的大作中提到】
: 是有个软件需要 X。
b*****l
发帖数: 9499
5
多谢。。。但是都不管用。。。
export DISPLAY 不管用,xhost 也不管用。。。“xhost: unable to open display”
putty 下设置了 X forwarding。
从另一台 linux 上 ssh 过去,-X -Y 都不管用。
sshd_config 里是:
X11Forwarding yes
X11DisplayOffset 10
nnd,感觉是哪里设置错了。就是找不到。。。

【在 E*V 的大作中提到】
: tell me if this link helps
: http://www.linuxquestions.org/questions/slackware-14/xterm-erro

r****t
发帖数: 10904
6
$ ssh -vvv 结果
$ xauth list

display”

【在 b*****l 的大作中提到】
: 多谢。。。但是都不管用。。。
: export DISPLAY 不管用,xhost 也不管用。。。“xhost: unable to open display”
: putty 下设置了 X forwarding。
: 从另一台 linux 上 ssh 过去,-X -Y 都不管用。
: sshd_config 里是:
: X11Forwarding yes
: X11DisplayOffset 10
: nnd,感觉是哪里设置错了。就是找不到。。。

x**m
发帖数: 941
7
你本地用的什么X?
s*******n
发帖数: 730
8
windows下面装了xserver吗?
google一个装上
免费的可能要设置一下,搞不定就用vnc好了,简单。
F*V
发帖数: 3978
9
河马哭了,

【在 s*******n 的大作中提到】
: windows下面装了xserver吗?
: google一个装上
: 免费的可能要设置一下,搞不定就用vnc好了,简单。

s*******n
发帖数: 730
10
说我鄙视他吗?
问的确实很noob的样子。。不好意思

【在 F*V 的大作中提到】
: 河马哭了,
相关主题
声卡问题请教小心发问 声音问题
10 reasons why Linux will triumph over Windows中國企業沒有人真正有戰略眼光的
Anyone using gigolo?Thinkpad的built in microphone有人在ubuntu下搞定了吗?
进入Linux版参与讨论
b*****l
发帖数: 9499
11
xming 啊。另一台服务器就没问题。

【在 x**m 的大作中提到】
: 你本地用的什么X?
b*****l
发帖数: 9499
12
在有问题的机器上么?xauth list 是空,ssh -vvv 是 OpenSSH_5.5p1 Debian-
4ubuntu5, OpenSSL 0.9.8o 01 Jun 2010
在没问题的机器上,ssh -vvv 是 OpenSSH_5.5p1 Debian-4ubuntu5, OpenSSL 0.9.8o
01 Jun 2010,xauth list 是好几个 MIT-MAGIC-COOKIE-1

【在 r****t 的大作中提到】
: $ ssh -vvv 结果
: $ xauth list
:
: display”

b*****l
发帖数: 9499
13
俺土俺知道。。。

【在 s*******n 的大作中提到】
: 说我鄙视他吗?
: 问的确实很noob的样子。。不好意思

r****t
发帖数: 10904
14
sorry, try look at the info printed out by
ssh -Xvv machine_name
then pay attention to lines after "Authenticated to ". There should be something info from xauth and the error xauth
encountered.
Then figure out how to add the cookie into your xauth list, usually this is due to .Xauthority is not readable, for example, the target machine did not mount your home directory.

8o

【在 b*****l 的大作中提到】
: 在有问题的机器上么?xauth list 是空,ssh -vvv 是 OpenSSH_5.5p1 Debian-
: 4ubuntu5, OpenSSL 0.9.8o 01 Jun 2010
: 在没问题的机器上,ssh -vvv 是 OpenSSH_5.5p1 Debian-4ubuntu5, OpenSSL 0.9.8o
: 01 Jun 2010,xauth list 是好几个 MIT-MAGIC-COOKIE-1

b*****l
发帖数: 9499
15
另外,怀疑是不是显卡驱动或者 xorg.conf 的问题
$lspci | grep VGA 的结果是
0a:03.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200eW WPCM450
(rev 0a)
/etc/X11/xorg.conf 是用 Xorg -configure 生成的。。。
/var/log/gdm3/:0-greeter.log 的内容是:
gnome-session[28930]: atk-bridge-WARNING: AT_SPI_REGISTRY was not started at
session startup.
gnome-session[28930]: atk-bridge-WARNING: IOR not set.
gnome-session[28930]: atk-bridge-WARNING: Could not locate registry
** (:28938): DEBUG: Client registered with session manager: /org/
gnome/SessionManager/Client1
Window manager warning: Failed to read saved session file /var/lib/gdm3/.
config/metacity/sessions/1015b94c971da25825130386256842485400000289300007.ms
/var/lib/gdm3/.config/metacity/sessions/
1015b94c971da25825130386256842485400000289300007.ms': No such file or
directory
** (process:28956): DEBUG: Greeter session pid=28956 display=:0.0 xauthority
=/var/run/gdm3/auth-for-Debian-gdm-Rua2sW/database
(polkit-gnome-authentication-agent-1:28954): GLib-GObject-WARNING **: cannot
register existing type `_PolkitError'
(polkit-gnome-authentication-agent-1:28954): GLib-CRITICAL **: g_once_init_
leave: assertion `initialization_value != 0' failed
gdm-simple-greeter[28956]: Gtk-WARNING: /scratch/build-area/gtk+2.0-2.20.1/
gtk/gtkwidget.c:5628: widget not within a GtkWindow
glibtop: This machine has 48 CPUs, 32 are being monitored.
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with
a timestamp of 0 for 0x160002b (Login Wind)
Window manager warning: meta_window_activate called by a pager with a 0
timestamp; the pager needs to be fixed.
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with
a timestamp of 0 for 0x160002b (Login Wind)
Window manager warning: meta_window_activate called by a pager with a 0
timestamp; the pager needs to be fixed.
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_card_driver
returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_concat
returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_refer returned
error: No such file or directory
ALSA lib conf.c:4649:(snd_config_expand) Evaluate error: No such file or
directory
ALSA lib pcm.c:2190:(snd_pcm_open_noupdate) Unknown PCM default
8o
b*****l
发帖数: 9499
16
相关的大约是这个:
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting n**************[email protected]
debug1: Entering interactive session.
debug2: callback start
debug2: x11_get_proto: /usr/bin/xauth list unix:10.0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req confirm 0
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug2: channel 0: request shell confirm 1
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0

should be something info from xauth and the error xauth
is due to .Xauthority is not readable, for example, the target machine did
not mount your home directory.

【在 r****t 的大作中提到】
: sorry, try look at the info printed out by
: ssh -Xvv machine_name
: then pay attention to lines after "Authenticated to ". There should be something info from xauth and the error xauth
: encountered.
: Then figure out how to add the cookie into your xauth list, usually this is due to .Xauthority is not readable, for example, the target machine did not mount your home directory.
:
: 8o

b*****l
发帖数: 9499
17
俺的 X -config /root/xorg.conf.new 的结果是:
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Apr 26 19:32:20 2011
(++) Using config file: "/root/xorg.conf.new"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) MGA(0): [drm] Direct rendering only supported with G200/G400/G450/G550.
SELinux: Disabled on system, not enabling in X server
然后就停在那里了。俺得 Ctrl-C 回到提示符。

【在 b*****l 的大作中提到】
: 相关的大约是这个:
: debug2: we sent a password packet, wait for reply
: debug1: Authentication succeeded (password).
: debug1: channel 0: new [client-session]
: debug2: channel 0: send open
: debug1: Requesting n**************[email protected]
: debug1: Entering interactive session.
: debug2: callback start
: debug2: x11_get_proto: /usr/bin/xauth list unix:10.0 2>/dev/null
: debug1: Requesting X11 forwarding with authentication spoofing.

r****t
发帖数: 10904
18
then your $DISPLAY env was ok. Why did you complain about no DISPLAY? is
$ echo $DISPLAY
showing empty?

【在 b*****l 的大作中提到】
: 相关的大约是这个:
: debug2: we sent a password packet, wait for reply
: debug1: Authentication succeeded (password).
: debug1: channel 0: new [client-session]
: debug2: channel 0: send open
: debug1: Requesting n**************[email protected]
: debug1: Entering interactive session.
: debug2: callback start
: debug2: x11_get_proto: /usr/bin/xauth list unix:10.0 2>/dev/null
: debug1: Requesting X11 forwarding with authentication spoofing.

r****t
发帖数: 10904
19
these look normal. I cannot see where the problem is...

G550.

【在 b*****l 的大作中提到】
: 俺的 X -config /root/xorg.conf.new 的结果是:
: (==) Log file: "/var/log/Xorg.0.log", Time: Tue Apr 26 19:32:20 2011
: (++) Using config file: "/root/xorg.conf.new"
: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
: (EE) MGA(0): [drm] Direct rendering only supported with G200/G400/G450/G550.
: SELinux: Disabled on system, not enabling in X server
: 然后就停在那里了。俺得 Ctrl-C 回到提示符。

b*****l
发帖数: 9499
20
是啊,echo $DISPLAY 啥都木有。。。

【在 r****t 的大作中提到】
: then your $DISPLAY env was ok. Why did you complain about no DISPLAY? is
: $ echo $DISPLAY
: showing empty?

相关主题
VirtualBox没有声音?ubuntu pulseaudio FAQ
ubuntu的声音很小继续批评 gentoo
苹果难道不是已经往Linux里渗透了?helllllllllllllllllllllllp, please.
进入Linux版参与讨论
r****t
发帖数: 10904
21
that's weird. I have no idea now. what if you set DISPLAY=:0 and "xhost +"
on the sshd server just to try?

【在 r****t 的大作中提到】
: then your $DISPLAY env was ok. Why did you complain about no DISPLAY? is
: $ echo $DISPLAY
: showing empty?

o******d
发帖数: 1552
22
YES, 他需要一个X的仿真端在Windows上。
在你的Linux上,如果你用的是BSH
export DISPLAY=your_windows_IP:0.0
在你的Windows上启动shell, 然后 xhost +
然后就可以用Putty看到你Linux的桌面了。
用VNC或者其他的都行。

【在 b*****l 的大作中提到】
: xming 啊。另一台服务器就没问题。
b*****l
发帖数: 9499
23
No protocol specified
xhost: unable to open display ":0"

+"

【在 r****t 的大作中提到】
: that's weird. I have no idea now. what if you set DISPLAY=:0 and "xhost +"
: on the sshd server just to try?

N****w
发帖数: 21578
24
给大家开个试验帐号试试 hehe

【在 b*****l 的大作中提到】
: No protocol specified
: xhost: unable to open display ":0"
:
: +"

b*****l
发帖数: 9499
25
说了啊,Xming。俺总不会在 windows 上连 X 都没有吧。。。那也太乌龙了。
而且,ssh 到另一台服务器上则没问题,X 工作正常。
$xhost +
xhost: unable to open display "my_windows_ip:0.0"
那啥哈,这都是一发现问题俺就马上试过的。
俺怀疑是显卡设置或者 xorg.conf 的问题。看来只能安排一次 downtime,然后拿张盘
去试试看
了。。。

【在 o******d 的大作中提到】
: YES, 他需要一个X的仿真端在Windows上。
: 在你的Linux上,如果你用的是BSH
: export DISPLAY=your_windows_IP:0.0
: 在你的Windows上启动shell, 然后 xhost +
: 然后就可以用Putty看到你Linux的桌面了。
: 用VNC或者其他的都行。

b*****l
发帖数: 9499
26
木办法啊,不能 ssh in / out。要 vpn 之后才能 ssh。
咋能判断是否显卡驱动有问题呢?
5 年前也发生过一次,那时候还是 alpha machine,gentoo,某天,突然 ssh 的 X 就
不成了,
on site 则可以起 X windows。其它几台服务器都没问题。折腾了 N 久,还是放弃了
。sigh。。


【在 N****w 的大作中提到】
: 给大家开个试验帐号试试 hehe
F*V
发帖数: 3978
27
你服务器本地可以起x么?
权限都对?

【在 b*****l 的大作中提到】
: 说了啊,Xming。俺总不会在 windows 上连 X 都没有吧。。。那也太乌龙了。
: 而且,ssh 到另一台服务器上则没问题,X 工作正常。
: $xhost +
: xhost: unable to open display "my_windows_ip:0.0"
: 那啥哈,这都是一发现问题俺就马上试过的。
: 俺怀疑是显卡设置或者 xorg.conf 的问题。看来只能安排一次 downtime,然后拿张盘
: 去试试看
: 了。。。

b*****l
发帖数: 9499
28
我不知道啊。得先做个 appointment 然后坐车去 server room 看一下。。。
不过以前出问题那次,本地可以起 X。就是 ssh 过来不成。

【在 F*V 的大作中提到】
: 你服务器本地可以起x么?
: 权限都对?

N*V
发帖数: 350
29
can
no machine
vnc
work?

【在 b*****l 的大作中提到】
: 我不知道啊。得先做个 appointment 然后坐车去 server room 看一下。。。
: 不过以前出问题那次,本地可以起 X。就是 ssh 过来不成。

b*****l
发帖数: 9499
30
刚试了 vnc,报说没有 DISPLAY,不行。
对了,.Xauthority 下面是空的,但是 .ICEauthority 里面有若干个 MIT-MAGIC-
COOKIE
另外,X 应该是起来了:
# ps aux | grep auth
root 23222 0.0 0.0 7544 852 pts/6 S+ 17:52 0:00 grep auth
root 27300 0.4 0.0 94432 7988 tty7 Ss+ 17:18 0:08 /usr/bin/X
相关主题
Linux Kernel 2.6.31 Released问个问题,关于X11 display
Emacs on X 显示古怪黑白框install matlab
Help, x server problem在线升级ubuntu 11.10中...
进入Linux版参与讨论
F*V
发帖数: 3978
31
.Xauthority should NOT be empty
I don't know what' s wrong though

X

【在 b*****l 的大作中提到】
: 刚试了 vnc,报说没有 DISPLAY,不行。
: 对了,.Xauthority 下面是空的,但是 .ICEauthority 里面有若干个 MIT-MAGIC-
: COOKIE
: 另外,X 应该是起来了:
: # ps aux | grep auth
: root 23222 0.0 0.0 7544 852 pts/6 S+ 17:52 0:00 grep auth
: root 27300 0.4 0.0 94432 7988 tty7 Ss+ 17:18 0:08 /usr/bin/X

bz
发帖数: 1770
32
firewall挡住了。

【在 b*****l 的大作中提到】
: 为啥这个服务器设完了 gnome 后,putty 过去,没有 DISPLAY 呢?。。。
: 六年前貌似也出过这个问题,一直没搞明白,不了了之了,后来。。。

N****w
发帖数: 21578
33
跟显卡没关系
把显卡拔了也能 X 进去

【在 b*****l 的大作中提到】
: 木办法啊,不能 ssh in / out。要 vpn 之后才能 ssh。
: 咋能判断是否显卡驱动有问题呢?
: 5 年前也发生过一次,那时候还是 alpha machine,gentoo,某天,突然 ssh 的 X 就
: 不成了,
: on site 则可以起 X windows。其它几台服务器都没问题。折腾了 N 久,还是放弃了
: 。sigh。。
: 。

b*****l
发帖数: 9499
34
能不能这么找错哈:
首先,哪个程序在什么时刻设置的 DISPLAY?而且这个 DISPLAY 应该是用户 login 时
自动被分配的啊,不该自己手动设置啊。
俺试图用 xauth 来 generate .Xauthority,但是,一样地报:没有 DISPLAY,所以啥
都不能干。所以看来 DISPLAY 应该比 xauth 要更先被设置。
手动用 export 设置了 n 多可能的 DISPLAY,没有一个 work 的。。。
装 gnome,不管用;卸了所有 X,装 xfce,还是一样。。。gdm, gdm3, xdm,都试过
了。。。nnd,花了超过 24 小时的工作时间了。。。等俺去 server room 看一看,好
确保显卡没问题。。。

【在 F*V 的大作中提到】
: .Xauthority should NOT be empty
: I don't know what' s wrong though
:
: X

b*****l
发帖数: 9499
35
这个是最可能的了!
另外一台服务器不在 server room,而且不在同一个 subnet 下,IP 都不一样。看来
这个可能是原因啊。。。咋整?

【在 bz 的大作中提到】
: firewall挡住了。
N****w
发帖数: 21578
36
换别的端口

【在 b*****l 的大作中提到】
: 这个是最可能的了!
: 另外一台服务器不在 server room,而且不在同一个 subnet 下,IP 都不一样。看来
: 这个可能是原因啊。。。咋整?

N****w
发帖数: 21578
37
或者 ssh reverse tunnel
或者 ssh port forwarding
能 ssh 过去,X 的协议就能 tunnel 回来

【在 N****w 的大作中提到】
: 换别的端口
b*****l
发帖数: 9499
38
那个可能不成。一堆用户在线呢。

【在 N****w 的大作中提到】
: 换别的端口
N****w
发帖数: 21578
39
跟别的用户有毛关系啊
你动 xming 的端口

【在 b*****l 的大作中提到】
: 那个可能不成。一堆用户在线呢。
b*****l
发帖数: 9499
40
reverse 哪个端口?

【在 N****w 的大作中提到】
: 或者 ssh reverse tunnel
: 或者 ssh port forwarding
: 能 ssh 过去,X 的协议就能 tunnel 回来

相关主题
在线升级ubuntu 11.10中...10 reasons why Linux will triumph over Windows
Lubuntu循环陷在登录页面出不来了Anyone using gigolo?
声卡问题请教小心发问 声音问题
进入Linux版参与讨论
N****w
发帖数: 21578
41
自己看手册
server display x.x.x.x:port1 -> ssh tunnel -> your xming pc -> your xming
port

【在 b*****l 的大作中提到】
: reverse 哪个端口?
b*****l
发帖数: 9499
42
我以为你让我改 sshd 的端口呢。。。

【在 N****w 的大作中提到】
: 跟别的用户有毛关系啊
: 你动 xming 的端口

N****w
发帖数: 21578
43
那也不用打扰其它用户啊
新跑一个 sshd 就行了

【在 b*****l 的大作中提到】
: 我以为你让我改 sshd 的端口呢。。。
b*****l
发帖数: 9499
44
先睡了,困死了。

【在 N****w 的大作中提到】
: 自己看手册
: server display x.x.x.x:port1 -> ssh tunnel -> your xming pc -> your xming
: port

b*****l
发帖数: 9499
45
上来的用户还好,不知情的用户的新 ssh 不就上不来了么?

【在 N****w 的大作中提到】
: 那也不用打扰其它用户啊
: 新跑一个 sshd 就行了

N****w
发帖数: 21578
46
靠,原来那个 22 端口还开着啊

【在 b*****l 的大作中提到】
: 上来的用户还好,不知情的用户的新 ssh 不就上不来了么?
b*****l
发帖数: 9499
47
那啥,说岔了。。。

【在 N****w 的大作中提到】
: 靠,原来那个 22 端口还开着啊
b*****l
发帖数: 9499
48
nnd, 出错的地方很简单:lo down 了。
By default,在 /etc/network/interfaces 里,auto lo 和 iface lo inet loopback
被 comment 掉了。所以,localhost 不能访问,当然就不能设置 DISPLAY 为
localhost:0.0。
今天设置另一个 daemon 时,报错说不能访问 localhost,才意识到。
tnnd,为啥 debian 的 default interfaces 里这两句给 comment 了?耍俺啊。。。

【在 b*****l 的大作中提到】
: 那啥,说岔了。。。
F*V
发帖数: 3978
49
现在你知道gentoo的好了吧?
gentoo特别注明要开lo

loopback

【在 b*****l 的大作中提到】
: nnd, 出错的地方很简单:lo down 了。
: By default,在 /etc/network/interfaces 里,auto lo 和 iface lo inet loopback
: 被 comment 掉了。所以,localhost 不能访问,当然就不能设置 DISPLAY 为
: localhost:0.0。
: 今天设置另一个 daemon 时,报错说不能访问 localhost,才意识到。
: tnnd,为啥 debian 的 default interfaces 里这两句给 comment 了?耍俺啊。。。

1 (共1页)
进入Linux版参与讨论
相关主题
继续批评 gentooLubuntu循环陷在登录页面出不来了
helllllllllllllllllllllllp, please.声卡问题请教
Linux Kernel 2.6.31 Released10 reasons why Linux will triumph over Windows
Emacs on X 显示古怪黑白框Anyone using gigolo?
Help, x server problem小心发问 声音问题
问个问题,关于X11 display中國企業沒有人真正有戰略眼光的
install matlabThinkpad的built in microphone有人在ubuntu下搞定了吗?
在线升级ubuntu 11.10中...VirtualBox没有声音?
相关话题的讨论汇总
话题: debug2话题: display话题: xauth话题: snd话题: warning