ubuntu 14.04 使用xbrowser登录的问题

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

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

#31

帖子 sh42 » 2016-04-05 12:05

poloshiao 写了:
當然 也可以 合理懷疑 Network-manager 有沒有瑕疵 但是需要小心求證
我和论坛中这个帖子是完全一样的问题:
viewtopic.php?f=94&t=470678
我看见您也有回复
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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

#32

帖子 poloshiao » 2016-04-05 18:47

viewtopic.php?f=94&t=470678
我的笔记本(win7)上用xmanager来连,能出来登录界面,但是我输入完用户名和密码后就自动退出了,
我和论坛中这个帖子是完全一样的问题:
登录框无法选择桌面,鼠标消失,只有键盘可用,输入密码后桌面没有任何图标,xbrowser的窗口几秒钟后也随即消失。
1. 該網友沒有繼續貼文 不知後來解決了沒

2. 你們的情況不是完全一樣
2-1. 你的情況是 14.04 XDMCP 沒有與 Windows 掛上線 (hooked)
他的情況應該是已經 與 Windows 掛上線
登入後 會又退回登入框 我建議他 試試 2D 桌面
而你已經是使用 2D 桌面了
2-2. 為何 都是建議使用 2D 桌面 ?
因為 2D 基本上 Ubuntu 及 Windows 都能顯示
但是 Ubuntu 預設 unity 桌面是 3D 顯示
Ubuntu 的 3D 顯示 與 Windows 的 3D 顯示 機制不同 意思就是 不相容
所以 目前 Ubuntu 與 Windows 遠程登錄 儘量不建議使用 3D
除非是有經驗的使用者 再去嘗試 3D
Low level keyboard proc already hooked.
3. 這一篇
https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
LowLevelKeyboardProc callback function
有詳細說明
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

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

#33

帖子 sh42 » 2016-04-06 11:41

[quote="poloshiao"][/quote]


我的确实已经使用了xfce以及mate这样的2D桌面,但是我总感觉lightdm的配置文件不太起作用,改动有些内容没有看到效果
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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

#34

帖子 poloshiao » 2016-04-06 12:44

我总感觉lightdm的配置文件不太起作用
1. https://wiki.ubuntu.com/xdmcp
ubuntu 12.04
/etc/lightdm/lightdm.conf
[XDMCPServer]
enabled=true

2. Ubuntu 14.04 的 lightdm 改動比較大
2-1. 試試
/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
[XDMCPServer]
enabled=true
2-2. 也可以試試 自己新創一個
/etc/lightdm/lightdm.conf
[XDMCPServer]
enabled=true
2-3. 不要重複設兩個
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

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

#35

帖子 sh42 » 2016-04-07 13:48

poloshiao 写了:
我总感觉lightdm的配置文件不太起作用
1. https://wiki.ubuntu.com/xdmcp
ubuntu 12.04
/etc/lightdm/lightdm.conf
[XDMCPServer]
enabled=true

2. Ubuntu 14.04 的 lightdm 改動比較大
2-1. 試試
/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
[XDMCPServer]
enabled=true
2-2. 也可以試試 自己新創一個
/etc/lightdm/lightdm.conf
[XDMCPServer]
enabled=true
2-3. 不要重複設兩個
我还想再问一下这个问题,我如果想用xfce作为默认桌面,该在哪里怎么设置呢?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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

#36

帖子 poloshiao » 2016-04-07 22:07

我如果想用xfce作为默认桌面,该在哪里怎么设置呢?
1. 先看看
sudo ls -al /usr/share/xsessions/*.desktop | grep xfce
有沒有 xfce.desktop
1-1. 有 xfce.desktop
/etc/lightdm/lightdm.conf.d/50-myconfig.conf
[SeatDefaults]
user-session=xfce
1-2. 沒有 xfce.desktop
表示 你沒有成功安裝 xubuntu-desktop
重新安裝 xubuntu-desktop
安裝後 重新開機

2. 參見
2-1. https://wiki.ubuntu.com/LightDM#Configuration
For example, if you want to override the system configured default session (provided in /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf) you should make a file /etc/lightdm/lightdm.conf.d/50-myconfig.conf with the following:
[SeatDefaults]
user-session=mysession
2-2. https://wiki.ubuntu.com/LightDM#Changin ... lt_Session
The default session is set by configuration in /usr/share/lightdm/lightdm.conf.d/ that session packages provide. If you need to override this you can set:
[SeatDefaults]
user-session=name
Where name is the name of the session .desktop file from /usr/share/xsessions/*.desktop.
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

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

#37

帖子 sh42 » 2016-04-08 11:28

poloshiao 写了: 1. 先看看
sudo ls -al /usr/share/xsessions/*.desktop | grep xfce
有沒有 xfce.desktop
1-1. 有 xfce.desktop
/etc/lightdm/lightdm.conf.d/50-myconfig.conf
[SeatDefaults]
user-session=xfce
我确定已经安装了xfce,我突然想到lightdm的log没准可以给我们一些提示,我打开了/var/log/lightdm/lightdm.log,发现了一些问题!!!!
首先附上我的配置文件:位于/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

[LightDM]
start-default-seat=true
#greeter-user=lightdm
#minimum-display-number=0
#minimum-vt=7
#lock-memory=true
#user-authority-in-system-dir=false
#guest-account-script=guest-account
#logind-check-graphical=false
log-directory=/var/log/lightdm
#run-directory=/var/run/lightdm
#cache-directory=/var/cache/lightdm
#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
#remote-sessions-directory=/usr/share/lightdm/remote-sessions
#greeters-directory=/usr/share/lightdm/greeters:/usr/share/xgreeters
#backup-logs=true

[Seat:*]
#type=xremote
#pam-service=lightdm
#pam-autologin-service=lightdm-autologin
#pam-greeter-service=lightdm-greeter
#xserver-command=X
#xmir-command=Xmir
#xserver-layout=
#xserver-config=
xserver-allow-tcp=true
#xserver-share=true
#xserver-hostname=
#xserver-display-number=
#xdmcp-manager=
xdmcp-port=177
#xdmcp-key=
#unity-compositor-command=unity-system-compositor
#unity-compositor-timeout=60
greeter-session=unity-greeter
#greeter-hide-users=false
#greeter-allow-guest=true
greeter-show-manual-login=true
greeter-show-remote-login=true

user-session=xfce
#allow-user-switching=true
#allow-guest=true
#guest-session=
#session-wrapper=lightdm-session
#greeter-wrapper=
#guest-wrapper=
#display-setup-script=
#display-stopped-script=
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
#autologin-guest=false
#autologin-user=
#autologin-user-timeout=0
#autologin-in-background=false
#autologin-session=
#exit-on-failure=false

[XDMCPServer]
enabled=true
port=177

#listen-address=
#key=

我设置了xfce为默认的user-session,这点可以确定的,可是当我打开了log时发现还是用的gnome的session,见下一篇帖子
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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

#38

帖子 poloshiao » 2016-04-08 11:33

我突然想到lightdm的log没准可以给我们一些提示,我打开了/var/log/lightdm/lightdm.log,发现了一些问题!!!!
:em11
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

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

#39

帖子 sh42 » 2016-04-08 11:37

poloshiao 写了: [SeatDefaults]
user-session=name
Where name is the name of the session .desktop file from /usr/share/xsessions/*.desktop.
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.16.7, UID=0 PID=25357
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/60-gnome.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating greeter session
[+0.01s] DEBUG: Seat seat0: Creating display server of type x
[+0.02s] DEBUG: Using VT 7
[+0.02s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.02s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+0.02s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
[+0.02s] DEBUG: DisplayServer x-0: Launching X Server
[+0.02s] DEBUG: Launching process 25363: /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -listen tcp vt7 -novtswitch
[+0.02s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+0.02s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.02s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.02s] DEBUG: Starting XDMCP server on UDP/IP port 177
[+0.03s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.03s] DEBUG: User /org/freedesktop/Accounts/User1001 added
[+0.03s] DEBUG: User /org/freedesktop/Accounts/User1002 added
[+0.04s] DEBUG: User /org/freedesktop/Accounts/User1003 added
[+1.12s] DEBUG: Got signal 10 from process 25363
[+1.12s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+1.12s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+1.13s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+1.13s] DEBUG: Session pid=25387: Started with service 'lightdm-greeter', username 'lightdm'
[+1.15s] DEBUG: Session pid=25387: Authentication complete with return value 0: Success
[+1.15s] DEBUG: Seat seat0: Session authenticated, running command
[+1.15s] DEBUG: Session pid=25387: Running command /usr/lib/lightdm/lightdm-greeter-session /usr/sbin/unity-greeter
[+1.15s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+1.15s] DEBUG: Session pid=25387: Logging to /var/log/lightdm/x-0-greeter.log
[+1.17s] DEBUG: Activating VT 7
[+1.17s] DEBUG: Activating login1 session c35
[+1.17s] DEBUG: Seat seat0 changes active session to c35
[+1.17s] DEBUG: Session c35 is already active
[+1.40s] DEBUG: Session pid=25387: Greeter connected version=1.16.7 resettable=false
[+1.53s] DEBUG: Session pid=25387: Greeter start authentication for luhang
[+1.53s] DEBUG: Session pid=25457: Started with service 'lightdm', username 'luhang'
[+1.54s] DEBUG: Session pid=25457: Got 1 message(s) from PAM
[+1.55s] DEBUG: Session pid=25387: Prompt greeter with 1 message(s)
[+71.42s] DEBUG: Got BroadcastQuery(authentication_names=[]) from 10.20.0.228:52369
[+71.42s] DEBUG: Send Willing(authentication_name='' hostname='' status='') to 10.20.0.228:52369
[+71.43s] DEBUG: Got BroadcastQuery(authentication_names=[]) from 10.20.0.228:52369
[+71.43s] DEBUG: Send Willing(authentication_name='' hostname='' status='') to 10.20.0.228:52369
[+71.60s] DEBUG: Got BroadcastQuery(authentication_names=[]) from 10.20.0.228:52987
[+71.60s] DEBUG: Send Willing(authentication_name='' hostname='' status='') to 10.20.0.228:52987
[+72.91s] DEBUG: Got Query(authentication_names=[]) from 10.20.0.228:52370
[+72.91s] DEBUG: Send Willing(authentication_name='' hostname='' status='') to 10.20.0.228:52370
[+73.47s] DEBUG: Got Request(display_number=1 connections=[10.20.0.228 192.168.56.1 2001:cc0:2026:d00:215a:c94e:853c:53b3 2001:cc0:2026:d00:d26:78f0:9a90:ad17 2001:cc0:2026:d00:9155:6c13:5935:327c 2001:cc0:2026:d00:a04a:b3f1:38c2:9d18 2001:cc0:2026:d00:adf7:b0fc:91ea:4ec3 fe80::215a:c94e:853c:53b3 fe80::79ab:86d5:2c57:616e 2001:0:9d38:6abd:10ff:6109:601d:d4cf fe80::10ff:6109:601d:d4cf] authentication_name='' authentication_data= authorization_names=['MIT-MAGIC-COOKIE-1' 'XDM-AUTHORIZATION-1' 'XC-QUERY-SECURITY-1'] manufacturer_display_id='') from 10.20.0.228:52370
[+73.47s] DEBUG: Send Accept(session_id=65219 authentication_name='' authentication_data= authorization_name='MIT-MAGIC-COOKIE-1' authorization_data=9D91858C8019369B01F5860F52AD85C2) to 10.20.0.228:52370
[+73.47s] DEBUG: Got Manage(session_id=65219 display_number=1 display_class='Xmanager') from 10.20.0.228:52370
[+73.48s] DEBUG: Seat (null): Loading properties from config section Seat:*
[+73.48s] DEBUG: Seat (null): Starting
[+73.48s] DEBUG: Seat (null): Creating greeter session
[+73.48s] DEBUG: Seat (null): Creating display server of type x
[+73.48s] DEBUG: DisplayServer x-10.20.0.228-1: Connecting to XServer 10.20.0.228:1
[+73.48s] DEBUG: Seat (null): Display server ready, starting session authentication
[+73.48s] DEBUG: Session: Not setting XDG_VTNR
[+73.48s] DEBUG: Session pid=25702: Started with service 'lightdm-greeter', username 'lightdm'
[+73.48s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat1
[+73.50s] DEBUG: Session pid=25702: Authentication complete with return value 0: Success
[+73.50s] DEBUG: Seat (null): Session authenticated, running command
[+73.50s] DEBUG: Session pid=25702: Not setting XDG_VTNR
[+73.50s] DEBUG: Session pid=25702: Running command /usr/lib/lightdm/lightdm-greeter-session /usr/sbin/unity-greeter
[+73.50s] DEBUG: Session pid=25702: Logging to /var/log/lightdm/x-10.20.0.228-1-greeter.log
[+73.53s] DEBUG: Activating login1 session c36
[+73.54s] WARNING: Error activating login1 session: GDBus.Error:org.freedesktop.DBus.Error.NotSupported: Operation not supported
[+73.80s] DEBUG: Session pid=25702: Greeter connected version=1.16.7 resettable=false
[+73.95s] DEBUG: Session pid=25702: Greeter start authentication for luhang
[+73.95s] DEBUG: Session: Not setting XDG_VTNR
[+73.95s] DEBUG: Session pid=25767: Started with service 'lightdm', username 'luhang'
[+73.96s] DEBUG: Session pid=25767: Got 1 message(s) from PAM
[+73.96s] DEBUG: Session pid=25702: Prompt greeter with 1 message(s)
[+78.69s] DEBUG: Session pid=25702: Continue authentication
[+78.73s] DEBUG: Session pid=25767: Authentication complete with return value 0: Success
[+78.73s] DEBUG: Session pid=25702: Authenticate result for user luhang: Success
[+78.73s] DEBUG: Session pid=25702: User luhang authorized
[+78.75s] DEBUG: Session pid=25702: Greeter requests session gnome
[+78.75s] DEBUG: Seat (null): Stopping greeter; display server will be re-used for user session
[+78.75s] DEBUG: Session pid=25702: Sending SIGTERM
[+78.78s] DEBUG: Session pid=25702: Exited with return value 0
[+78.78s] DEBUG: Seat (null): Session stopped
[+78.78s] DEBUG: Seat (null): Greeter stopped, running session
[+78.78s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+78.78s] DEBUG: Session pid=25767: Not setting XDG_VTNR
[+78.78s] DEBUG: Session pid=25767: Running command /usr/sbin/lightdm-session gnome-session --session=gnome 这个完全不应该,我设置的是xfce
[+78.78s] DEBUG: Session pid=25767: Logging to .xsession-errors
[+78.81s] DEBUG: Activating login1 session c37
[+78.81s] WARNING: Error activating login1 session: GDBus.Error:org.freedesktop.DBus.Error.NotSupported: Operation not supported
[+85.10s] DEBUG: Session pid=25767: Exited with return value 0
[+85.10s] DEBUG: Seat (null): Session stopped
[+85.10s] DEBUG: Seat (null): Stopping display server, no sessions require it
[+85.10s] DEBUG: Seat (null): Display server stopped
[+85.10s] DEBUG: Seat (null): Active display server stopped, starting greeter
[+85.10s] DEBUG: Seat (null): Stopping; failed to start a greeter
[+85.10s] DEBUG: Seat (null): Stopping
[+85.10s] DEBUG: Seat (null): Stopped
[+371.42s] DEBUG: Got BroadcastQuery(authentication_names=[]) from 10.20.0.228:52369
[+371.42s] DEBUG: Send Willing(authentication_name='' hostname='' status='') to 10.20.0.228:52369
[+671.42s] DEBUG: Got BroadcastQuery(authentication_names=[]) from 10.20.0.228:52369
[+671.42s] DEBUG: Send Willing(authentication_name='' hostname='' status='') to 10.20.0.228:52369

怎么还是要求使用gnome的session,不应该是xfce的session吗?
上次由 sh42 在 2016-04-08 12:24,总共编辑 2 次。
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

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

#40

帖子 sh42 » 2016-04-08 11:41

poloshiao 写了:
我突然想到lightdm的log没准可以给我们一些提示,我打开了/var/log/lightdm/lightdm.log,发现了一些问题!!!!
:em11
另外为了override,我没有在您推荐的位置新建一个myconfig.conf,而是直接修改了默认的配置文件,50-ubuntu.conf,应该也是可以的吧
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

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

#41

帖子 sh42 » 2016-04-08 11:49

附上/var/log/lightdm/x-10.20.0.228-1-greeter.log,这个是greeter的log文件,也是有一些错误。

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast 这就是我之前提问过的显卡问题

[+0.00s] DEBUG: unity-greeter.vala:496: Starting unity-greeter 15.10.1 UID=119 LANG=en_US.UTF-8
[+0.00s] DEBUG: unity-greeter.vala:499: Setting cursor
[+0.00s] DEBUG: unity-greeter.vala:513: Loading command line options
[+0.00s] DEBUG: unity-greeter.vala:541: Setting GTK+ settings
[+0.06s] DEBUG: unity-greeter.vala:564: Creating Unity Greeter
[+0.06s] DEBUG: unity-greeter.vala:57: Creating background surface
[+0.07s] DEBUG: Connecting to display manager...
[+0.07s] DEBUG: Wrote 22 bytes to daemon
[+0.07s] DEBUG: Read 8 bytes from daemon
[+0.07s] DEBUG: Read 147 bytes from daemon
[+0.07s] DEBUG: Connected version=1.16.7 default-session=xfce show-manual-login=true hide-users=false has-guest-account=true show-remote-login=true
[+0.08s] WARNING: settings-daemon.vala:138: Failed to inhibit power keys: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied
[+0.12s] DEBUG: menubar.vala:335: LANG=en_US.UTF-8 LANGUAGE=(null)
[+0.13s] DEBUG: menubar.vala:367: LANG=en_US.UTF-8 LANGUAGE=(null)
[+0.14s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.14s] DEBUG: User /org/freedesktop/Accounts/User1001 added
[+0.14s] DEBUG: User /org/freedesktop/Accounts/User1002 added
[+0.15s] DEBUG: User /org/freedesktop/Accounts/User1003 added
[+0.16s] DEBUG: user-list.vala:1030: Adding/updating user luhang ()
[+0.16s] DEBUG: Loading sessions from org.freedesktop.DisplayManager
[+0.18s] DEBUG: user-list.vala:1030: Adding/updating user zhanglei ()
[+0.18s] DEBUG: user-list.vala:1030: Adding/updating user znp ()
[+0.19s] DEBUG: user-list.vala:1012: Adding guest account entry
[+0.21s] DEBUG: Ignoring configuration file /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf~, it does not have .conf suffix
[+0.21s] DEBUG: Loaded session /usr/share/xsessions/gnome-flashback-metacity.desktop (GNOME Flashback (Metacity), This session logs you into GNOME Flashback with Metacity)
[+0.21s] DEBUG: Loaded session /usr/share/xsessions/gnome.desktop (GNOME, This session logs you into GNOME)
[+0.21s] DEBUG: Loaded session /usr/share/xsessions/mate.desktop (MATE, This session logs you into MATE)
[+0.21s] DEBUG: Loaded session /usr/share/xsessions/ubuntu.desktop (Ubuntu, This session logs you into Ubuntu)
[+0.21s] DEBUG: Loaded session /usr/share/xsessions/xfce.desktop (Xfce Session, Use this session to run Xfce as your desktop environment)
[+0.21s] DEBUG: Loaded session /usr/share/xsessions/openbox.desktop (Openbox, Log in using the Openbox window manager (without a session manager))
[+0.21s] DEBUG: Loaded session /usr/share/xsessions/gnome-classic.desktop (GNOME Classic, This session logs you into GNOME Classic)
[+0.21s] DEBUG: Loaded session /usr/share/xsessions/gnome-flashback-compiz.desktop (GNOME Flashback (Compiz), This session logs you into GNOME Flashback with Compiz)
[+0.21s] DEBUG: Starting authentication for user luhang...
[+0.21s] DEBUG: Wrote 22 bytes to daemon
[+0.22s] DEBUG: main-window.vala:185: Screen is 2560x1197 pixels
[+0.22s] DEBUG: main-window.vala:193: Monitor 0 is 2560x1197 pixels at 0,0
[+0.22s] DEBUG: unity-greeter.vala:567: Showing greeter
[+0.22s] DEBUG: unity-greeter.vala:252: Showing main window
[+0.24s] DEBUG: background.vala:483: Regenerating backgrounds
[+0.24s] DEBUG: background.vala:68: Making background /usr/share/backgrounds/warty-final-ubuntu.png at 2560x1197
[+0.28s] DEBUG: unity-greeter.vala:610: Starting main loop
[+0.28s] DEBUG: Read 8 bytes from daemon
[+0.28s] DEBUG: Read 36 bytes from daemon
[+0.28s] DEBUG: Prompt user with 1 message(s)
[+0.29s] DEBUG: background.vala:68: Making background /usr/share/backgrounds/xfce/xfce-blue.jpg at 2560x1197
[+0.30s] DEBUG: settings-daemon.vala:75: Acquired org.gnome.SessionManager
[+0.31s] DEBUG: settings-daemon.vala:102: Acquired org.gnome.ScreenSaver
[+0.31s] DEBUG: settings-daemon.vala:159: All bus names acquired, starting unity-settings-daemon
[+0.34s] DEBUG: Connected to Application Indicator Service.
[+0.38s] DEBUG: menubar.vala:537: Adding indicator object 0x23a7410 at position 0
[+0.39s] DEBUG: menubar.vala:537: Adding indicator object 0x23a7570 at position 1
[+0.39s] DEBUG: menubar.vala:537: Adding indicator object 0x23a7830 at position 2
[+0.40s] DEBUG: Request current apps
[+0.50s] DEBUG: unity-greeter.vala:235: starting system-ready sound

** (unity-settings-daemon:25810): WARNING **: IDLETIME counter not found


** (unity-settings-daemon:25810): WARNING **: IDLETIME counter not found


** (unity-settings-daemon:25810): WARNING **: IDLETIME counter not found

[+0.53s] DEBUG: background.vala:121: Render of background /usr/share/backgrounds/warty-final-ubuntu.png complete

(nm-applet:25773): nm-applet-WARNING **: Failed to register as an agent: (32) An agent with this ID is already registered for this user.
[+1.79s] DEBUG: Building new application entry: :1.18 with icon: nm-no-connection at position 0
[+1.80s] DEBUG: menubar.vala:537: Adding indicator object 0x265aa60 at position 3
[+1.80s] DEBUG: menubar.vala:537: Adding indicator object 0x23a72b0 at position 3

(unity-settings-daemon:25810): power-plugin-WARNING **: Unable to start gsd_power manager: RANDR extension is too old (must be at least 1.2)
[+1.87s] DEBUG: background.vala:121: Render of background /usr/share/backgrounds/xfce/xfce-blue.jpg complete

(unity-settings-daemon:25810): xrandr-plugin-WARNING **: Unable to start gsd_xrandr manager: RANDR extension is too old (must be at least 1.2)

(unity-settings-daemon:25810): color-plugin-WARNING **: Unable to start gsd_color manager: RANDR extension is too old (must be at least 1.2)

** (unity-settings-daemon:25810): WARNING **: Unable to register client: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such method 'RegisterClient'
[+4.95s] DEBUG: Providing response to display manager
[+4.95s] DEBUG: Wrote 22 bytes to daemon
[+5.00s] DEBUG: Read 8 bytes from daemon
[+5.00s] DEBUG: Read 18 bytes from daemon
[+5.00s] DEBUG: Authentication complete for user luhang with return code 0
[+5.02s] DEBUG: Starting session gnome
[+5.02s] DEBUG: Wrote 17 bytes to daemon
[+5.02s] DEBUG: Read 8 bytes from daemon
[+5.02s] DEBUG: Read 4 bytes from daemon
upstart: indicator-messages main process ended, respawning

** (unity-settings-daemon:25810): WARNING **: Name taken or bus went away - shutting down

(unity-settings-daemon:25810): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(unity-settings-daemon:25810): GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
upstart: indicator-power main process (25777) killed by TERM signal
upstart: indicator-power main process ended, respawning
upstart: indicator-sound main process ended, respawning
upstart: indicator-session main process (25781) killed by TERM signal
upstart: indicator-session main process ended, respawning
upstart: indicator-datetime main process (25778) killed by TERM signal
upstart: indicator-datetime main process ended, respawning
upstart: indicator-keyboard main process ended, respawning
upstart: indicator-application main process (25786) killed by TERM signal
upstart: indicator-application main process ended, respawning
upstart: indicator-sound main process ended, respawning
[+5.05s] DEBUG: unity-greeter.vala:605: Got a SIGTERM
[+5.05s] DEBUG: settings-daemon.vala:78: Failed to acquire name org.gnome.SessionManager
[+5.05s] DEBUG: settings-daemon.vala:105: Failed to acquire name org.gnome.ScreenSaver
[+5.05s] DEBUG: unity-greeter.vala:135: Failed to acquire name com.canonical.Unity
upstart: indicator-messages main process ended, respawning
upstart: indicator-sound respawning too fast, stopped
upstart: indicator-power main process ended, respawning
upstart: indicator-session main process ended, respawning
upstart: indicator-application main process ended, respawning
upstart: indicator-datetime main process ended, respawning
upstart: indicator-power respawning too fast, stopped
upstart: indicator-messages respawning too fast, stopped
[+5.08s] DEBUG: Loaded session /org/freedesktop/DisplayManager/Session0 (luhang)
[+5.08s] DEBUG: user-list.vala:1030: Adding/updating user luhang ()
[+5.08s] DEBUG: unity-greeter.vala:613: Cleaning up
[+5.08s] DEBUG: unity-greeter.vala:621: Upstart exited with return value 0
[+5.08s] DEBUG: unity-greeter.vala:633: AT-SPI exited with return value 0
[+5.08s] DEBUG: unity-greeter.vala:639: Exiting
upstart: indicator-datetime main process (25889) killed by TERM signal
upstart: indicator-bluetooth main process (25776) killed by TERM signal
upstart: indicator-keyboard main process (25847) killed by TERM signal
upstart: indicator-application main process (25884) killed by TERM signal
上次由 sh42 在 2016-04-08 12:18,总共编辑 2 次。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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

#42

帖子 poloshiao » 2016-04-08 11:52

首先附上我的配置文件:位于/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
1. 這是安裝時的系統預設
建議 不要在這裡更改 留著當參考
1-1. 如果要更改
在 /etc/lightdm/lightdm.conf.d/50-myconfig.conf
這樣 開機過程 在 /etc/lightdm/lightdm.conf.d/50-myconfig.conf
有設定的變數值 會覆改 /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf 的 預設值
另外为了override,我没有在您推荐的位置新建一个myconfig.conf,而是直接修改了默认的配置文件,50-ubuntu.conf,应该也是可以的吧
2. 不會有問題
2-1. 但是 一旦出現問題要抓錯 沒了對照組 也忘了如何回到從前 (只好重新安裝)
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

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

#43

帖子 sh42 » 2016-04-08 12:11

poloshiao 写了: 2-1. 但是 一旦出現問題要抓錯 沒了對照組 也忘了如何回到從前 (只好重新安裝)
原来的我备份过了,里面很简单,就一个字段:
[Seat:*]
user-session=ubuntu
没有别的了。
我见到/etc/lightdm/lightdm.conf是log中表示的最后一个读取的配置文件,因此我将50-ubuntu.conf恢复成了原始的样子,并在/etc/lightdm/下建立了lightdm.conf,放入了帖子中表示的配置。log的结果还是一样。
您可以看看上面的log内容
上次由 sh42 在 2016-04-08 12:25,总共编辑 1 次。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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

#44

帖子 poloshiao » 2016-04-08 12:15

原来的我备份过了
:em11
就一个字段:
[Seat:*]
user-session=ubuntu
没有别的了。
1. 所以
/etc/lightdm/lightdm.conf.d/50-myconfig.conf
[SeatDefaults]
user-session=xfce
1-1. 其它 不要 試試

2. 有興趣 搜尋一下
[Seat:*]
[SeatDefaults]
有何不同 ?
2-1. https://wiki.ubuntu.com/LightDM#Configuration
Later versions of lightdm (15.10 onwards) have replaced the obsolete [SeatDefaults] with [Seat:*]
Ubuntu 15.10 及 以後版本 才以 [Seat:*] 取代 [SeatDefaults]
在 Ubuntu 14.04 使用 [Seat:*] 與 [SeatDefaults]是否相同 要確認一下
头像
sh42
帖子: 101
注册时间: 2011-05-01 20:18

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

#45

帖子 sh42 » 2016-04-08 12:31

poloshiao 写了: 放入 /etc/lightdm/lightdm.conf.d/50-myconfig.conf ?
我是放入/etc/lightdm/lightdm.conf中,因为我看log中读取的文件顺序,/etc/lightdm/lightdm.conf是最后读取的,我在该conf中将user-session设置成了xfce。见前文log
此外,我新建了/etc/lightdm/lightdm.conf.d/50-myconfig.conf,发现读取顺序还是最后读取/etc/lightdm/lightdm.conf

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.16.7, UID=0 PID=26689
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/60-gnome.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf.d/50-myconfig.conf
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
.......
另外,我是15.10的ubuntu,所以用的是Seat:*

此外,您看log中default session是设置成了xfce的,但是不知道为何还要求gnome
回复