ubuntu 14.04 使用xbrowser登录的问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

Re: ubuntu 14.04 使用xbrowser登录的问题

#16

帖子 sh42 » 2016-04-01 18:43

poloshiao 写了:1. 如果在這裡選擇 xfce 可以登入 xfce 桌面
那麼 先推論 lightdm 已經初步 安裝/設定 成功
1-1. 意思是 先把 lightdm 的話題 放下
,但是鼠标进入xbrowser之后就消失,只有键盘可以使用。
2. 你現在是從 Windows 登入 xbrowser ? 還是 從 Linux 連接 Windows 後 进入xbrowser ?
2-1. http://www.answers.com/Q/What_is_Xmanager_3
Xmanager is a powerful and easy-to-use PC X server that runs on Windows platforms.
2-2. http://xmanager.software.informer.com/
XManager is a very good program. It consists of many applications:
Xbrowser, Xconfig, Xmanager - Broadcast, Xmanager - Passive and Xstart.
Xmanager is a powerful PC X server. It runs only on Windows Operating Systems.
lightdm的安装应该没有问题,我使用sudo service lightdm stop/start/restart 都没有报任何错误。
所以我认为lightdm“安装”没有问题,但是“设定”可能有问题,因为/etc/lightdm/lightdm.conf的某些设置我觉得没有起作用,例如那个usr-session。
我是用windows 10用xbrowser5登录的。不知道哪里出了问题,xstart和xconfig应该都不能图形界面登录,xbrowser是大家都用来走xdmcp协议进行remote control的。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 14.04 使用xbrowser登录的问题

#17

帖子 poloshiao » 2016-04-01 20:56

我试图用鼠标点击登录框旁边的小圆按钮(就是可以选桌面那个),但是鼠标进入xbrowser之后就消失,只有键盘可以使用。
1. 這句話 不是很明白
1-1. 順序上 應該是先 进入 xbrowser 以後 才會出現 登录框 ?
1-2. 意思是 這應該是在 Windows 端
1-3. 但是 需要確保 Ubuntu 端的 登錄框 已經 OK
1-4. 所以要在 Ubuntu 端完成測試 登錄框 已經 OK 見 2.
viewtopic.php?p=3159430#p3159430
4. 修改完 lightdm.conf 以後
按 ctrl + alt + F1
登入 tty1
sudo restart lightdm
才開始生效
2. 上面 這些指令 是指在 Ubuntu 端執行
目的 要確定你的 lightdm 登入框 在 Ubuntu 是確實可以登入 xfce 桌面
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

Re: ubuntu 14.04 使用xbrowser登录的问题

#18

帖子 sh42 » 2016-04-02 13:41

poloshiao 写了: 1. 這句話 不是很明白
1-1. 順序上 應該是先 进入 xbrowser 以後 才會出現 登录框 ?
1-2. 意思是 這應該是在 Windows 端
1-3. 但是 需要確保 Ubuntu 端的 登錄框 已經 OK
1-4. 所以要在 Ubuntu 端完成測試 登錄框 已經 OK 見 2.
2. 上面 這些指令 是指在 Ubuntu 端執行
目的 要確定你的 lightdm 登入框 在 Ubuntu 是確實可以登入 xfce 桌面
具体我放在附件的图中了。
此外,直接将显示器连接到服务器上,是可以登录进xfce和mate的,而且非常正常,只有xbrowser远程登录图形界面的时候才出现上面的问题。
2016-03-30_13-27-43.jpg
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

Re: ubuntu 14.04 使用xbrowser登录的问题

#19

帖子 sh42 » 2016-04-02 13:51

poloshiao 写了: 1. 這句話 不是很明白
1-1. 順序上 應該是先 进入 xbrowser 以後 才會出現 登录框 ?
1-2. 意思是 這應該是在 Windows 端
1-3. 但是 需要確保 Ubuntu 端的 登錄框 已經 OK
1-4. 所以要在 Ubuntu 端完成測試 登錄框 已經 OK 見 2.
2. 上面 這些指令 是指在 Ubuntu 端執行
目的 要確定你的 lightdm 登入框 在 Ubuntu 是確實可以登入 xfce 桌面
我再补充一下,ubuntu服务器是放在机房的,所以不方便每时每刻去机房接显示器看,因此若想使用图形界面,只能使用xbrowser远程登录。
目前lightdm的177端口都打开了,因此可以看到登录框,但是登录进去没有任何东西,因此我认为是默认桌面没有加载成功,刚才图中已经说明了鼠标进入之后消失,因此也没法选择使用哪个桌面。我觉得还是lightdm的配置问题。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 14.04 使用xbrowser登录的问题

#20

帖子 poloshiao » 2016-04-02 18:49

目前lightdm的177端口都打开了,因此可以看到登录框,
1. 在 windows 端
把 登录框 輸入密碼前 如果有出現 xfce 及 mate 的畫面 擷圖 貼上來
我配置了/etc/gdm/custom.conf打开了177端口DisallowTCP设置为false,并且设置了/usr/share/gdm/gdm.schemas里面的相关参数(Xdmcp enable=true等),使用netstat一看,177端口是打开的:udp6 0 0 :::177 :::* 1606/gdm 。但是使用xbrowser连接就是黑屏并提示说xdmcp连接失败,不知为何,打开xbrowser的日志一看:
2. Xbrowser sends a broadcast packet to the local broadcast address, 255.255.255.255, UDP port 177.
Xdmcp 使用 UDP port 177 搜尋
2-1. 有沒有在 路由器 設定 UDP port 177 轉送 轉送到 Ubuntu 端 (檢查路由器 NAT 標籤)
网上说防火墙的问题,因此我打开了本机win10的6000-6200端口
但是登录进去没有任何东西,因此我认为是默认桌面没有加载成功,刚才图中已经说明了鼠标进入之后消失,因此也没法选择使用哪个桌面。
3. Ubuntu 端
防火墙 6000-6200 端口 有沒有打開
3-1. Windows 端
Forward external TCP ports 6000 ~ 6010 to the ports 6000 ~ 6010 of your Windows.
有沒有在 路由器 設定 ports 6000 ~ 6010 轉送 轉送到 Windows (檢查路由器 NAT 標籤)

4. 如果還有問題 檢查 Xmanager 的 log messages.
To see Xmanager log files, click the system menu on Xmanager main window, point to Log, and then click File.

5. 參見
5-1. https://www.netsarang.com/tutorial/xman ... with_XDMCP
Getting Started: Download, Install and Start with XDMCP
5-2. https://www.netsarang.com/faq/xmanager/list/29
User Guide
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

Re: ubuntu 14.04 使用xbrowser登录的问题

#21

帖子 sh42 » 2016-04-02 20:46

poloshiao 写了: 1. 在 windows 端
把 登录框 輸入密碼前 如果有出現 xfce 及 mate 的畫面 擷圖 貼上來
至于1,输入密码前首先打开的就是图中的界面,没有让选择xfce还是mate的机会(因为鼠标消失,点不到那个小圆点)。。。。。

至于2~4,我都严格执行了。而且我们这有另一台服务器,装的是12.04LTS,使用xbrowser就没有任何问题,桌面选择、加载都完全正常,所以我觉得不是防火墙的问题,还是14.04本身的问题,在本论坛中去年也发过一个类似问题的帖子,也应该没有解决这个问题。

viewtopic.php?f=180&t=465701
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 14.04 使用xbrowser登录的问题

#22

帖子 poloshiao » 2016-04-03 6:26

4. 如果還有問題 檢查 Xmanager 的 log messages.
To see Xmanager log files, click the system menu on Xmanager main window, point to Log, and then click File.
Xmanager 端 Log File 有沒有任何 失敗/錯誤 訊息
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

Re: ubuntu 14.04 使用xbrowser登录的问题

#23

帖子 sh42 » 2016-04-03 9:06

poloshiao 写了:
4. 如果還有問題 檢查 Xmanager 的 log messages.
To see Xmanager log files, click the system menu on Xmanager main window, point to Log, and then click File.
Xmanager 端 Log File 有沒有任何 失敗/錯誤 訊息
周二我会把log file贴上来的!感谢您的帮助!总是麻烦您,万分感谢!~我目前使用xrdp登录,就是画面很卡顿
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 14.04 使用xbrowser登录的问题

#24

帖子 poloshiao » 2016-04-03 11:45

我们这有另一台服务器,装的是12.04LTS,使用xbrowser就没有任何问题
太好了 有一個 對照組 對於找出問題 有幫助

檢查 12.04 / 14.04 看看 Log File 到底差在哪裡
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

Re: ubuntu 14.04 使用xbrowser登录的问题

#25

帖子 sh42 » 2016-04-05 9:38

poloshiao 写了: 太好了 有一個 對照組 對於找出問題 有幫助

檢查 12.04 / 14.04 看看 Log File 到底差在哪裡
我们单位的服务器的ip一个是114(ubuntu14.04)结尾,一个是112(ubuntu12.04LTS)结尾,log如下:

(1)以下是14.04的xbrowser log:
WinSock Version 2.2 is selected.
Highest Version 2.2
Description: WinSock 2.0
System Status: Running
Max Sockets: 0
Max UDP Datagram: 0
Local Hostname: 'DESKTOP-JS5375N'
RGB database: C:\Program Files (x86)\Xmanager Enterprise 5\rgb\rgb.txt
Local Address: xxx 不具体写这里的地址了。
Local Address: 192.168.56.1
Local Address: xxxxxx
Local Address: xxxxx
Local Address: xxxxx
Local Address: 10.20.0.228
Local Address: ::1
Local Address: 127.0.0.1
Local Address: xxxx
Local Address: xxxxx
Listening port: 6000
XDMCP Display Number: 0
Xdmcp: sent a QUERY message.
Window Mode: 0
Primary Screen Resolution: 2048 x 1152
Size of Palette: 0
Number of Reserved Colors: 0
Resolution of Color: 24
Depth of Screen: 32
Maximum Cursor Width: 32
Maximum Cursor Height: 32
Frame Width: 8
Frame Height: 8
Border Width: 1
Border Height: 1
Maximum Client Area Width: 2048
Maximum Client Area Height:1089
Icon Width: 32
Icon Height: 32
Small Icon Width: 16
Small Icon Height: 16
Caption Height: 23
Shade Blend Pixel Alpha: 1
DBCS Enabled: 1
GDI batch limit: 20

Mouse buttons: 16
Waveform Output Devices: 1
Mouse wheel present: 1

Monitors: 1
Selected Monitor: Virtual Screen
Same display format: 1
Virtual screen x 0, y 0, w 2048 h 1152
Root Window x 0, y 0, w 1024, h 768
Exact StoreColor: 0
Reverse RGB Order: 0

Screen 0: 1024 x 768, depth 24, dpi 96 x 96
Keyboard file version: 3.0
Keyboard file: US 101 keyboard
Keyboard type: 0
nKeys, minKC, maxKC, mapWidth, nCompose: 101, 8, 109, 4, 0
Number of keycodes: 102
Number of KeySyms: 408
Bytes of KeySyms: 1632
Running Xsound...

Waiting for client connections ...

Xdmcp: received a WILLING message.
Xdmcp Request Address: 10.107.0.114
Xdmcp Connection Address 0: 10.20.0.228
Xdmcp Connection Address 1: 192.168.56.1
Xdmcp Connection Address 2: xxxx,不具体写这里的地址了。
Xdmcp Connection Address 3: xxxx
Xdmcp Connection Address 4: xxx
Xdmcp Connection Address 5: xxx
Xdmcp Connection Address 6: xxx
Xdmcp Connection Address 7: xxx
Xdmcp: sent a REQUEST message.
Xdmcp: received an ACCEPT message.
Xdmcp: sent a MANAGE message.
xmgrRRSetConfig: 2048 x 952


(2)下面是12.04LTS的log:
WinSock Version 2.2 is selected.
Highest Version 2.2
Description: WinSock 2.0
System Status: Running
Max Sockets: 0
Max UDP Datagram: 0
Local Hostname: 'DESKTOP-JS5375N'
RGB database: C:\Program Files (x86)\Xmanager Enterprise 5\rgb\rgb.txt
Local Address: xxxxx
Local Address: 192.168.56.1
Local Address: xxxxx
Local Address: xxxxx
Local Address: xxxxx
Local Address: 10.20.0.228
Local Address: ::1
Local Address: 127.0.0.1
Local Address: xxxxx
Local Address: xxxxx
Listening port: 6000
XDMCP Display Number: 0
Xdmcp: sent a QUERY message.
Window Mode: 0
Primary Screen Resolution: 2048 x 1152
Size of Palette: 0
Number of Reserved Colors: 0
Resolution of Color: 24
Depth of Screen: 32
Maximum Cursor Width: 32
Maximum Cursor Height: 32
Frame Width: 8
Frame Height: 8
Border Width: 1
Border Height: 1
Maximum Client Area Width: 2048
Maximum Client Area Height:1089
Icon Width: 32
Icon Height: 32
Small Icon Width: 16
Small Icon Height: 16
Caption Height: 23
Shade Blend Pixel Alpha: 1
DBCS Enabled: 1
GDI batch limit: 20

Mouse buttons: 16
Waveform Output Devices: 1
Mouse wheel present: 1

Monitors: 1
Selected Monitor: Virtual Screen
Same display format: 1
Virtual screen x 0, y 0, w 2048 h 1152
Root Window x 0, y 0, w 1024, h 768
Exact StoreColor: 0
Reverse RGB Order: 0

Screen 0: 1024 x 768, depth 24, dpi 96 x 96
Keyboard file version: 3.0
Keyboard file: US 101 keyboard
Keyboard type: 0
nKeys, minKC, maxKC, mapWidth, nCompose: 101, 8, 109, 4, 0
Number of keycodes: 102
Number of KeySyms: 408
Bytes of KeySyms: 1632
Running Xsound...

Waiting for client connections ...

Xdmcp: received a WILLING message.
Xdmcp Request Address: 10.107.0.112
Xdmcp Connection Address 0: 10.20.0.228
Xdmcp Connection Address 1: 192.168.56.1
Xdmcp Connection Address 2: xxxxx
Xdmcp Connection Address 3: xxxxx
Xdmcp Connection Address 4:xxxxx
Xdmcp Connection Address 5: xxxxx
Xdmcp Connection Address 6: xxxxx
Xdmcp Connection Address 7: xxxxx
Xdmcp: sent a REQUEST message.
Xdmcp: received an ACCEPT message.
Xdmcp: sent a MANAGE message.
xmgrRRSetConfig: 2048 x 952
Low level keyboard proc already hooked.
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

Re: ubuntu 14.04 使用xbrowser登录的问题

#26

帖子 sh42 » 2016-04-05 10:00

poloshiao 写了: 太好了 有一個 對照組 對於找出問題 有幫助

檢查 12.04 / 14.04 看看 Log File 到底差在哪裡
上两张图作为参考:
这是工作正常的12.04LTS,登录框可以选择桌面,登陆后桌面图标存在:
2016-04-05_9-53-14.jpg
2016-04-05_9-47-08.jpg
这是工作不正常的15.10,登录框无法选择桌面,鼠标消失,只有键盘可用,输入密码后桌面没有任何图标,xbrowser的窗口几秒钟后也随即消失。
2016-04-05_9-54-55.jpg
2016-04-05_9-48-21.jpg
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 14.04 使用xbrowser登录的问题

#27

帖子 poloshiao » 2016-04-05 10:52

使用 diff 程式 比較 14.04 及 12.04 檔
發現其不同如下表
請詳細檢查你的 14.04 區網位址 是否有差異
導致 在 12.04 出現成功連上 (hooked) 但是 14.04 沒有出現 成功連上 (hooked) 的記錄

图片
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

Re: ubuntu 14.04 使用xbrowser登录的问题

#28

帖子 sh42 » 2016-04-05 11:32

poloshiao 写了:使用 diff 程式 比較 14.04 及 12.04 檔
發現其不同如下表
請詳細檢查你的 14.04 區網位址 是否有差異
導致 在 12.04 出現成功連上 (hooked) 但是 14.04 沒有出現 成功連上 (hooked) 的記錄

图片
是的,只有最后一行有差异,一个表示键盘hooked,一个没有,我不明白这是个什么意思。。。。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 14.04 使用xbrowser登录的问题

#29

帖子 poloshiao » 2016-04-05 11:41

在 14.04 的區網 IP 跟 12.04 的區網 IP 有明顯不同
12.04
Local Address: xxxxx
後面都是 五個 x
14.04
很不一致
Local Address: xxx 不具体写这里的地址了。
Local Address: xxxxxx
Local Address: xxxxx
Local Address: xxxx
如果你的 區網設定 完全沒問題
搜索看看 XDMCP 有沒有 這方面的 Bug Report

你可以試試 在 14.04 XDMCP 降級 安裝跟 12.04 一樣 看看能否順利操作

當然 也可以 合理懷疑 Network-manager 有沒有瑕疵 但是需要小心求證
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

Re: ubuntu 14.04 使用xbrowser登录的问题

#30

帖子 sh42 » 2016-04-05 11:59

poloshiao 写了:在 14.04 的區網 IP 跟 12.04 的區網 IP 有明顯不同
12.04
Local Address: xxxxx
後面都是 五個 x
14.04
很不一致
Local Address: xxx 不具体写这里的地址了。
Local Address: xxxxxx
Local Address: xxxxx
Local Address: xxxx
如果你的 區網設定 完全沒問題
搜索看看 XDMCP 有沒有 這方面的 Bug Report

你可以試試 在 14.04 XDMCP 降級 安裝跟 12.04 一樣 看看能否順利操作

當然 也可以 合理懷疑 Network-manager 有沒有瑕疵 但是需要小心求證
哦,那个local address中的xxx是我自己打上去的,为了隐藏我的MAC地址,哈哈,实际上2个log的这些地方都完全一致!唯一的不同就是最后一行hooked那个地方,14.04(15.10)的log是没有这一行的,说明键盘鼠标可能没有识别??这2个服务器的ip地址设定都没问题,我不敢私自降级xdmcp,我是新手呵呵,我怕有问题没法恢复。。。。可以先放一放这个问题,慢慢求证。
回复